This project is a simple example of Tarantool HTTP-server, written on TypesScript with TypescriptToLua and TarantoolScript. It is intended to demonstrate the possibility of writing Tarantool Lua scripts with TypeScript.
To build this project, you need to install first Node.js. After installation just run in console:
npm run build
Or just use make:
make build
After successfully building all Lua files will be placed into ./build/app
directory. You can use this files to run them with tt CLI utility or with Tarantool directly.
Before launch Lua script, make sure you have installed http package.
For run tests, you need to install first luatest and optionally luacov
. To launch tests run in console:
npm run test
or
npm run test-coverage
This project includes VSCode DevContainer configurations, so you can just open it in development container which includes all needed dependencies.