Skip to content

In our third-year project, we built PowerSmart, an energy-saving system with machine prediction and IoT sensors. 🌟 This repo contains the ExpressJS backend with a PostgreSQL database. πŸŒπŸ”’πŸ“¦

Notifications You must be signed in to change notification settings

Power-Smart/PowerSmart-Backend

Repository files navigation

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)

About

In our third-year project, we built PowerSmart, an energy-saving system with machine prediction and IoT sensors. 🌟 This repo contains the ExpressJS backend with a PostgreSQL database. πŸŒπŸ”’πŸ“¦

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published