Boilerplate of a NodeJS project using our latest patterns.
- typescript
- typeorm
- postgres
- mongodb
- express
- yup
- jest
- test - run ava tests
- build - compile project
- start- run compiled project
- dev - run development server with hot reload
- typeorm - same as npx typeorm
- m:run - run migrations
- m:generate - generate a migration
- clean-database - drop database and run migrations
docker build -t seidor-cloud-produtos/node-project-boilerplate .
docker run --rm -p 3000:3000 seidor-cloud-produtos/node-project-boilerplatemake runs docker-compose commands under the hood
make up
make downSee Makefile for aditional commands.
make testor a more manual approach. Create .env file with this contents:
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=genericservice
MONGO_HOST=localhost
MONGO_PORT=27107
MONGO_DBNAME=genericservice
Then run:
make updb
npm test