Skip to content

Hostel Initiative is a platform that connects hostel seekers with hostel agents. Eliminating the stress of checking out rooms and making payments, we help you get things done faster, safer, and better.

Notifications You must be signed in to change notification settings

ogeobubu/hostel-initiative-MERN

Repository files navigation

Hostel Initiative

A system built for hostel accommodation allocation for Obafemi Awolowo University students to connect students with the right accommodation in Ile-Ife, Osun State, Nigeria..

Installation: Get Started

Make sure you have npm or yarn installed by running the following command:

node -v
yarn -v

If you do not have npm installed, install NodeJS here

If your node version is less than v14, you would need to update it.

If you do not have yarn installed, run npm i -g yarn in your terminal to install it

Getting Started With the Frontend/Client (React)

Install dependencies in the root folder,

cd client folder, and install the dependencies

yarn install

Open http://localhost:3000 with your browser to see the result.

Configure .env file

DATABASE = Mongo Uri
PORT_PATH = 5000
JWT_SECRET = your secret key
REFRESH_TOKEN_SECRET = your secret key
ACCESS_TOKEN_SECRET = your secret key

Concurrently Run Both (React & Node)

Make sure you are in the root folder

Run the development server using either of the following commands:

npm run dev
# or
yarn run dev

Open http://localhost:3000 with your browser to see the frontend result and your server would be listening on http://localhost:5000.

Technologies / Languages

  • React

A free and open-source front-end JavaScript library for building user interfaces based on UI components. It is maintained by Meta and a community of individual developers and companies. React can be used as a base in the development of single-page.

  • Express

Express.js, or simply Express, is a back end web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs. It has been called the framework for Node.js.

  • MongoDB

MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.

  • NodeJS

Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser.

Features / Functionalities

  • Register/Login Screens
  • Protected/Secure API Routes using JsonWebToken ( jwt )
  • Agent Details
  • Create Accomodation
  • Edit/Delete Accomodation Details
  • Update Accomodation Details
  • Display Accomodation Details
  • Search, Filter Accomodation Data
  • Control User List
  • Upload images using Firebase
  • Get Similar Accomodations
  • Payment Integration

Test MasterCard PIN authentication

Card number: 5531 8866 5214 2950
cvv: 564
Expiry: 09/32
Pin: 3310
OTP: 12345

Screenshots

Landing Page

Single Accomodation Page

Dashboard Page

Create Accomodation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Hostel Initiative is a platform that connects hostel seekers with hostel agents. Eliminating the stress of checking out rooms and making payments, we help you get things done faster, safer, and better.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages