A comprehensive campus management platform built with Django and Django REST Framework, designed to facilitate various campus activities and services.
- JWT-based authentication system
- User registration and profile management
- Role-based access control
- Report lost or found items
- Search and claim items
- Image upload support
- Status tracking (lost/found/claimed)
- Book listings and requests
- Book exchange platform
- Book status tracking
- Event management
- Event registration
- Comments and discussions
- Room listing and searching
- Profile matching
- Contact system
- Framework: Django 4.1.13
- REST API: Django REST Framework 3.14.0
- Authentication: JWT (djangorestframework-simplejwt)
- Database: SQLite (Development), MongoDB (Planned for production)
- CORS: django-cors-headers
- Python 3.8+
- pip (Python package manager)
- Git (for version control)
-
Clone the repository
git clone <repository-url> cd CampusConnect
-
Install dependencies
pip install -r requirements.txt
(Alternative for above). IF Above command doesn't work and give error | Put the below command respectively to terminal Error
pip install django-cors-headers
pip install djangorestframework-simplejwt
pip install django-filter==25.1
-
Apply migrations
python manage.py makemigrations python manage.py migrate
-
Create superuser
python manage.py createsuperuser
-
Run the development server
python manage.py runserver
-
Access the application
CampusConnect/
├── accounts/ # User authentication and profiles
├── bookbank/ # Book exchange system
├── campusconnect/ # Project configuration
├── lostfound/ # Lost & found system
├── noticeboard/ # Event management (upcoming)
├── roommate/ # Roommate finder (upcoming)
├── manage.py # Django management script
├── requirements.txt # Project dependencies
└── README.md # This file
SECRET_KEY: Django secret keyDEBUG: Debug mode (True/False)ALLOWED_HOSTS: Comma-separated list of allowed hostsCORS_ALLOWED_ORIGINS: Allowed CORS originsDATABASE_URL: Database connection URL
Key settings can be found in campusconnect/settings.py:
- Database configuration
- Installed apps
- Middleware
- Authentication backends
- CORS settings
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
