This project is a web based application where universities can provide internal hostel booking services to their students.
Backend - NodeJS, ExpressJS and MySQl Database Frontend- Bootstrap and CSS modules
-
Prerequisites
Make sure you have the following installed on your system:
- Node.js 18.17 or later.: You can download it from the official Node.js website.
- An IDE: You can use any IDE of your choice like Visual Studio, Visual Studio Code or JetBrains Rider.
-
Clone the repository
You can clone the repository using the command:
git clone https://github.com/EvansMungai/UHB
-
Restore dependencies
You can restore the dependencies used by this project using the command:
npm install
-
Import the database
You can find the starter database in the Server directory. Run MySQl and create an empty database. Exit MySQL and run the following command:
mysql -u username -p databaseName < dumpfile.sql
Replace username with database username, databaseName with the name of the empty database and dumpfile.sql with the file found in the server directory.
-
Create a .env file and add the following in the lines in the file
Host = localhost User = databaseUsername Password = databasePassword Database = databaseName
Replace "databaseUsername" with username used to access the database, "databasePassword" with password used to access the database, "databaseName" with the database you want to select.
-
Start the Project in Development Server
You can start the project in development mode using the command:
nodemon index.js
-
Check out the system in the web browser UHB