Skip to content

This project expose an API, that content all business logic of a blog., This can use for any client.

Notifications You must be signed in to change notification settings

FrcGustavo/blogging-api

Repository files navigation

Node.js CI

Bloging

It is the api that handles the information of a blog

Config the enviroment variables

Before the start, your must config enviroment variables

Intructions:

  • 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=

Start

Install dependencies

npm install

Run build

npm run build

Run development mode

npm run dev

Run production mode

npm run start

Run tests and coverage code

npm run test
npm run cover

Run linter and auto fix files

npm run lint
npm run lint -- --fix

About

This project expose an API, that content all business logic of a blog., This can use for any client.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages