BooksApi, a simple api to show knowledge.
$ npm install
Inside de folder of the application
mkdir common/envs && touch common/.env && touch common/development.env
Then we add this variable to the files as you database configuration (OBS: here I am using PostgreSQL from Linode but you can use other database see TypeOrm)
PORT=3000
BASE_URL=HTTP://localhost:3000
DATABASE_HOST=localhost
DATABASE_NAME=dbname
DATABASE_USER=user
DATABASE_PASSWORD=password
DATABASE_PORT=5432
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
- Author - Raphael
- Linkedin - @raphaelbenzi
Nest is MIT licensed.