GitLab CI |
---|
Barebones starter kit for server apps with TypeScript
Install Node dependencies
$ npm install
Run the test suite
$ npm t
Run the code for development and watch for changes
$ npm run dev
Compile the code for release
$ npm run build
Run the compiled code
$ node -r ./bootstrap.js build
If you want to develop in a Docker container, this project along with PostgreSQL can be brought up with
make up
And when you are done working
make down
See the docker-compose.yml file for details on this set up.
docker build --target release -t tsnodestarter:$(git rev-parse --short=7 HEAD) .