ManageHostel is an online Hostel booking website where student can book hostel rooms.
- Any IDE (eg. VS Code , Sublime etc).
- Node JS
- NPM Installer
-
You can clone the repository
- Make sure your machine is having internet connection.
- Open shell (which ever your OS support) on your PC.
- Change drive to the location where you want your project to be copied.
- Make a folder name ManageHostel and change directory to that folder.
- Now type or copy-paste the below given commands.
- Frontend
https://github.com/ashutosh3027/ManageHostel-Frontend
- Backend
https://github.com/ashutosh3027/ManageHostel-Backend
- Frontend
- Press Enter and the project will be cloned in you system.
You can directly download the zip file and extract it
-
After extracting the zip file or after cloning the repository
-
You will find 2 folders.
- ManageHostel-Frontend
- ManageHostel-Backend
You can change the names of folder if you want.
-
To run Client folder, type the following commands in terminal
- cd ManageHostel-Frontend
- npm install
- npm start
Frontend port - 3000
-
To run Server folder, type the following commands in terminal
- cd ManageHostel-Backend
- npm install
- npm start
Backend port - 8000
-
/
|-- ManageHostel-Frontend/
|-- public/
|-- index.html #First webpage of the project
|-- src/
|-- assets/
|-- css/ #Contains css used in the project
|-- images/ #Contains images used in the project
|-- axiosConfigure #Contains setup for axios
|-- components/ #Contains all the required components of project
|-- About/ #Contains about page
|-- Home/ #Contains home page
|-- Login/ #Contains UI for login
|-- Navebar/ #Contains UI for Navbar
|-- Profile/ #Contains UI for student's profile
|-- Register/ #Contains UI for siginUp
|-- requests/ #Contains UI for requesting rooms
|-- RequestStatus/ #Contains UI for checking Request Status
|-- RoomDetail/ #Contains UI for room detail
|-- RoomStatus/ #Contains UI for room status
|-- Spinner/ #Contains global loader.
|-- context/ #Defined all global states
|-- services/ #Contains all api functions used in the project
|-- utils/ #Contains authentication component
|
|-- ManageHostel-Backend/
|-- controller/ #Contains all the controllers of project
|-- authController.js #Contains all the functions related to authentication
|-- errorController.js #Contains all the functions related to errors
|-- requestController.js #Contains all the functions related to request
|-- roomController.js #Contains all the functions related to rooms
|-- userController.js #Contains all the functions related to user
|-- modals/ #Contains Schemas
|-- requestModals.js #Contains request schema
|-- roomModals.js #Contains room schema
|-- userModals.js #Contains user schema
|-- routes/ #Contains all routes used in project
|-- requestRoutes.js #Contains all routes related to requests
|-- roomRoutes.js #Contains all routes related to rooms
|-- userRoutes.js #Contains all routes related too users
|-- utils/ #Contains basis utils of project
|-- app.js #Contains express app
|-- server.js #Main file of ManageHostel server folder