Skip to content

Survival-DEV/blog-backend

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Lectura is a blog site, currently it's for reading blogs only, but it will have a chat rooms/ following options someday.

Get Started

$ git clone https://github.com/Survival-DEV/blog-backend.git
$ cd blog-backend
$ npm ci

Running the app

# development
$ docker-compose up // for run redis service
$ npm run start  // for run the project itself -for_now_only-

# watch mode
$ docker-compose up
$ npm run start:dev

Environment variables:

Create an .env file and write these params down inside of it.

Expand to see the params
  > DATABASE_URL=<your db url#>
  > NODE_ENV=DEBUG  //for now
  > logDB=["query", "error"]
  > PORT=<your port#>
  > TRUSTED_IP=["127.0.0.1"]
  > WHITELIST=['http://localhost']
  > ALLOWED_METHODS='GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS'
  > JWT_VERIFICATION_TOKEN_SECRET='secreto2'
  > JWT_VERIFICATION_TOKEN_EXPIRATION_TIME='60s'
  > EMAIL_CONFIRMATION_URL='http://localhost:5000/api/v1/auth/confirm-email/'
  > SEND_GRID_ACCESS_KEY=`<your sendgird key>`
  > FROM_EMAIL=`your sendgrid email`
  > SENDGRID_TEMPLATE_ID=d-3285e7571ee64e8fafedb163996e5a55
  >CONTACT_EMAIL= `<some_mail for_swagger_configs_to_be_contacted_at>`

Acknowledgement:

This work is been supported by those great people, thank you for your endless support:

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •