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

Latest commit

 

History

History
46 lines (33 loc) · 950 Bytes

README.md

File metadata and controls

46 lines (33 loc) · 950 Bytes

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