NodeJS Blog API Service
$ npm install
Before you can start the app, you need to create a .env
file in the root directory of the project and add the following environment variables:
DATABASE_URL="mysql://user:password@localhost:3306/jetdevs"
# database migration
$ npm run migrate
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
The API service will be available at http://localhost:3000
And the API Specs will be available at http://localhost:3000/api
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov