Skip to content

vitaliy-art/tarantoolscript-server-example

Repository files navigation

TarantoolScript server example

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.

Build

To build this project, you need to install first Node.js. After installation just run in console:

npm run build

Run

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.

Lua dependencies

Before launch Lua script, make sure you have installed http package.

Tests

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

Devcontainer

This project includes VSCode DevContainer configurations, so you can just open it in development container which includes all needed dependencies.