This repo contains a sample project structure for EventMS.
- docs/ — documentation and design artifacts
- backend/ — backend source (placeholder)
- frontend/ — frontend source (placeholder)
- requirements.md
- system-design.md
- test-cases.md
- deployment.md
- future-enhancements.md
- API.md - Complete API endpoint documentation
This folder contains a minimal React + Vite scaffold.
To run locally:
cd frontend
npm install
npm run devFiles of interest:
src/api/axios.js— axios instancesrc/components— UI componentssrc/pages— page viewssrc/services— API wrappers
This folder contains the Django REST API backend for the Event Management System.
- Django project:
eventms_backend - Apps:
events: Event listing and managementregistrations: User registrations for eventstickets: Ticket management
- Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install django djangorestframework django-cors-headers
- Start the Django project:
django-admin startproject eventms_backend . - Create the apps:
python manage.py startapp events python manage.py startapp registrations python manage.py startapp tickets
- Add the apps and required packages to
INSTALLED_APPSineventms_backend/settings.py:rest_frameworkcorsheaderseventsregistrationstickets
- Configure CORS in
settings.py:CORS_ALLOW_ALL_ORIGINS = True
- Run migrations:
python manage.py migrate
- Run the server:
python manage.py runserver
POST /api/users/register/- Register a new userPOST /api/users/login/- User loginGET /api/users/- List all usersGET /api/users/profile/- Get user profile (authenticated)PUT /api/users/profile/- Update user profile (authenticated)PUT /api/users/<user_id>/update/- Update user by ID
GET /api/events/- List events (filtered by role/status)POST /api/events/- Create new eventGET /api/events/<event_id>/- Get event detailsPUT /api/events/<event_id>/- Update eventDELETE /api/events/<event_id>/- Delete eventPOST /api/events/<event_id>/approve/- Approve/reject event (admin only)GET /api/events/my-submissions/- Get user's submitted events
GET /api/registrations/- List all registrationsPOST /api/registrations/- Create registrationGET /api/registrations/<registration_id>/- Get registration detailsPUT /api/registrations/<registration_id>/- Update registrationDELETE /api/registrations/<registration_id>/- Cancel registration
GET /api/tickets/- List all tickets (supports search)POST /api/tickets/- Create ticket
📘 For complete API documentation with request/response examples, see docs/API.md
See each app folder for models, serializers, and views.
Best Website Experience Laptop:1440px,1024px Tablet: 768px