Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

ossdaiict/hostel-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hostel Backend

Hostel Backend is created with the help of Express.js and Node-Schedule. Basically it manage the mailing and complaint system.

Requirements

Basic functionality

  • Role base authentication system.
  • Sending the mail on every second day for Snail Mail.
  • Auto close complaints within 24 to 48 hours.

Create .env file at root folder and provide environment variables

# Gmail Email and Password
EMAIL=
PASSWORD=
# JWT Secret key
SECRET_KEY=
# Website Login page
LOGIN_PAGE=
# Mongodb database string
DATABASE_STRING=

Instruction

# Install dependencies for server
yarn

# Run the server on nodemon
yarn  dev

# Run the Express server only
yarn start

# Server runs on http://localhost:5000