Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 874 Bytes

README.md

File metadata and controls

44 lines (26 loc) · 874 Bytes

PowerSmart-Backend

Technologies

  • API - ExpressJs
  • Database - PostgreSql
  • ORM - Sequelize
  • Authentication - JSON Web Tokens

npm packages

express - Create the REST-API

sequelize - ORM

pg pg-hstore - Support for postgresql database

jsonwebtoken passport passport-jwt - packages for authentication

bcrypt cookie-parser dot-env body-parser cors - Some useful packages

nodemon - Auto restart development server

Folder Structure

|- config
|- controllers
|- models
|- routes
|> index.js

Environment Variables

  • PORT -> Server running port

  • DB_NAME -> Database Name

  • DB_USER -> Database Username

  • DB_PASSWORD -> Database Password

  • ACCESS_TOKEN_SECRET -> Secret for create the access token (JWT)

  • REFRESH_TOKEN_SECRET -> Secret for create the refresh token (JWT)