typescript-node-starter
typescript-node-starter copied to clipboard
Barebones starter kit for server apps with TypeScript
typescript-node-starter
| GitLab CI |
|---|
Barebones starter kit for server apps with TypeScript
Quick Start
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
Docker
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.
Production Image
docker build --target release -t tsnodestarter:$(git rev-parse --short=7 HEAD) .