Markdown
A full-stack hotel operations platform built with Django REST Framework and React.
It manages cabins, bookings, guests, staff access, and invitation-based onboarding with JWT authentication.
- Frontend: https://hotel-management-fullstack-ten.vercel.app
- Backend API: https://hotel-management-fullstack-production.up.railway.app
This project was built to simulate a real internal hotel management workflow:
- booking and cabin management
- role-based staff access
- secure authentication
- invitation-based onboarding
- performance-focused API design
- JWT authentication with access and refresh tokens
- Role-based access control for admin and staff
- Booking, cabin, and guest management
- Staff invite flow with token-based onboarding
- Dashboard analytics for bookings and stay duration
- Redis caching for performance
- Celery background tasks for async workflows
- Database indexing for query optimization
- Django
- Django REST Framework
- PostgreSQL
- Redis
- Celery
- SimpleJWT
- React
- Vite
- Axios
- React Query
- Context API
- Railway for backend and database
- Vercel for frontend
- Frontend and backend are separated
- API is served by Django REST Framework
- PostgreSQL stores production data
- Redis is used for caching and Celery task broker
- JWT is used for authentication
- Environment variables are used for production configuration
- Fixed cross-origin issues between Vercel and Railway
- Debugged production 500 errors using Railway logs
- Handled JWT signing and token flow issues
- Separated deployment logic from data seeding logic
- Configured production database and cache services correctly
cd myprojectBackend
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
Frontend
Bash
cd Frontend
npm install
npm run devLicense MIT