An application design and develop to help dormitory owners and maintenance personnel manage the day-to-day operations of their dormitories.
This project was a partial fulfillment for the requirements of BSCOE-ELEC2 - Database Management System.
- HTML5
- CSS3
- JavaScript
- Node.js
- Express.js
- Handlebars.js
- MongoDB
- Redis
- Material Design for Bootstrap
- Icons from Material Design
- Create a folder that will be used as a database storage.
- Run mongoDB in the terminal.
$ mongod --dbpath <your database folder path>
Example:
$ mongod --dbpath ~/Documents/mongodb-database
- Run redis-server in the terminal:
$ redis-server --port <your port>
Example:
$ redis-server --port 6380
- Clone this repository and install the dependencies:
$ git clone https://github.com/guyfrommilkyway/Dormitory-Management-System.git
$ cd Dormitory-Management-System
$ npm i
- Create a file named 'config.env'.
Dormitory-Management-System
└───public
└───src
└───views
│ .gitignore
│ config.env
│ package-lock.json
│ package.json
│ README.md
- Paste this code inside the 'config.env' file:
PORT=<your port>
REDIS_HOST=<localhost>
REDIS_PORT=<your redis port>
MONGODB_URL=mongodb://localhost:<mongodb port>/<your database name>
JWT_SECRET=<some random strings>
COOKIE_SECRET=<some random strings>
Example:
PORT=3000
REDIS_HOST=127.0.0.1
REDIS_PORT=6380
MONGODB_URL=mongodb://localhost:27017/dormitory-management-system
JWT_SECRET=nIqxawqgGFcYwIUeCyeWCaQcxREFiV
COOKIE_SECRET=cIBdzoGyyiMFgVQehkGQLJdAFedZxG
- Run the application in the terminal.
$ npm run dev
Note:
You have to run mongodb and redis first before running the application.
Otherwise, it will show an error message.
- Finally, you can view and use the application by going to:
localhost:<your port>
Example:
localhost:3000