It is the api that handles the information of a blog
Before the start, your must config enviroment variables
- Create the next files with enviroments variables
.api.env
MONGO_HOST=
MONGO_USERNAME=
MONGO_PASSWORD=
MONGO_DATABASE=
POSTGRES_DIALECT=
POSTGRES_HOST=
POSTGRES_USERNAME=
POSTGRES_PASSWORD=
POSTGRES_DATABASE=
POSTGRES_SETUP=
PORT=
.db.env
POSTGRES_USER=
POSTGRES_DB=
POSTGRES_PASSWORD=
.pgadmin.env
PGADMIN_DEFAULT_EMAIL=
PGADMIN_DEFAULT_PASSWORD=
.mongo.env
MONGO_INITDB_ROOT_USERNAME=
MONGO_INITDB_ROOT_PASSWORD=
Install dependencies
npm installRun build
npm run buildRun development mode
npm run devRun production mode
npm run startRun tests and coverage code
npm run test
npm run coverRun linter and auto fix files
npm run lint
npm run lint -- --fix