Node express boilerplate
This project is created for the future to decrease potential efforts inventing some new service.
To start express server:
yarn start
To test express server:
yarn test
For development:
yarn dev
Database
To connect your own database, change env variables in .env file
If you decide to use PrismaORM:
- Generate scheme due
yarn prisma db pull
,yarn generate
- To test your connection, correct file
src/connection/prisma.ts
and runyarn ts-node src/connection/prisma.ts
- Remove mongoose connection from
/index.ts
If you decide to use Mongoose:
- Remove PrismaORM deps:
yarn remove prisma
- Remove example file
src/connection/prisma.ts
To build your project for Docker:
make docker_build
To run image in Docker:
make docker_run