- PostgreSQL database or use prepared docker image
- NPM and Node.JS (version 10.15.3 forced by
nvm use
)
- Copy and edit
.env.dist
to.env
file according to your needs (PostgreSQL database) - Install globally
typescript
andtsc
packages (depends on your OS) - Run
nvm use && npm ci
to install all required dependencies
The easiest way to run app is to follow those commands:
migrate:dev
- to run migrations directly from TS filesstart:dev
to run app with nodemonstart:debug
- to debug application with nodemonstart:local
- to start application with ts-node (without nodemon)
Use following scripts to achieve this:
build
- transpiles TS files to pure JSmigration:run
- run migrations for databasestart
- run JS compiled application
Swagger API Docs will genenerate automatically when you restart the app.
- Documentation is available at:
{YOUR_APP_BASE_URL}/docs/api
Any comments or thoughts? I appreciate any kind of feedback here: grzegorz.bar@icloud.com