Configuration service built using Nest framework TypeScript starter repository.
Make sure you have set up a local installation of MySQL. Then do the following:
-
in MySQL Workbench, create the database:
CREATE DATABASE dev; -- for development CREATE DATABASE test; -- for e2e
-
in project directory, install dependencies:
$ yarn install
-
in project directory, create your
.env
and.env.test
files like the one in.env.example
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
- Add OpenAPI documentation with Swagger integration read more here.
- Containerize the database in a Docker image read more here.
- Author - Gianmarco Bado
Nest is MIT licensed.