A modern web application to find and filter hostels near UPES campus by distance and budget.
This project has been refactored to use a separated frontend and backend architecture:
- Backend: Express.js server running on port 5000
- Frontend: React application running on port 3000 (development)
.
├── backend/
│ ├── server.js # Express server entry point
│ ├── package.json # Backend dependencies
│ ├── routes/
│ │ └── api.js # API endpoints
│ ├── data/
│ │ └── hostels.js # Hostel data
│ ├── public/ # Static assets (fonts, images)
│ └── node_modules/
├── frontend/
│ ├── package.json # Frontend dependencies
│ ├── vite.config.js # Vite configuration
│ ├── public/ # Static files (favicon, logo)
│ ├── src/
│ │ ├── App.jsx # Main React component
│ │ ├── index.jsx # React entry point
│ │ ├── index.css # Styling
│ │ └── components/ # React components
│ │ ├── Header.jsx
│ │ ├── FilterForm.jsx
│ │ ├── MapSection.jsx
│ │ ├── HostelTable.jsx
│ │ └── Footer.jsx
│ └── node_modules/
├── static/ # Original static files (kept for reference)
└── README.md
- Node.js 16+ and npm
cd backend
npm install
npm startThe backend will run on http://localhost:5000
API Endpoint:
GET /api/hostels?distance=<km>&price=<₹>- Get filtered hostels
cd frontend
npm install
npm run devThe frontend will run on http://localhost:3000
- Filter hostels by maximum distance from campus (0-3 km)
- Filter hostels by budget range (₹100,000 - ₹160,000)
- View hostels in an interactive table
- Embedded Google Maps showing UPES location
- Responsive design for mobile and desktop
This project was originally built with Flask and Jinja2 templates and has been modernized to use:
- Backend: Express.js with RESTful API
- Frontend: React with Vite for fast development
All functionality and styling have been preserved from the original application.
Terminal 1 (Backend):
cd backend
npm startTerminal 2 (Frontend):
cd frontend
npm run devThen visit http://localhost:3000 in your browser.
To build the frontend for production:
cd frontend
npm run buildThe built files will be in frontend/dist/ directory.
- Express.js - Web framework
- CORS - Cross-Origin Resource Sharing middleware
- React - UI library
- Vite - Build tool and dev server
- CSS - Styling
Waulkeen's Rest © 2026