benzispawn / books-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

BooksApi, a simple api to show knowledge.

Installation

$ npm install

Adding DB config

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

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

- TODO

Stay in touch

License

Nest is MIT licensed.

About


Languages

Language:TypeScript 97.6%Language:JavaScript 2.4%