Todo App is based on Nest and PostgresSQL database. Booth services (APP and DB) is dockerized. App is based on JWT token authentication.
To run this application you must have nodejs and docker installed on your pc.
$ npm install
# start booth services (App, Db)
$ ./start.sh
$ ./stop.sh
Migrations start automatically after the first application launch, but you can run also from command line. Be careful, if you want to start migrations manually, you must be connected inside the app docker container.
# run migration
$ npm run migration:run
# revert migration
$ npm run migration:revert
All environment variables is located in docker.env file in app root folder. Warning: the docker.env is only for development demonstration purposes. Best practices is add env files to .gitignore
APP_PORT
DB_HOST
DB_PORT
DB_USER
DB_PASSWORD
DB_NAME
JWT_SECRET
JWT_EXPIRATION_TIME
REST API documentation is writen in OpenApi and is available at:
http://localhost:3000/api