LockerProtection is a web application built using Django, HTML, and CSS. It allows users to protect their lockers by setting up personalized access codes.
- User registration and login
- Locker management
- Access code setup
- Dashboard with locker status
- Frontend: HTML, CSS
- Backend: Django, Django REST Framework, CORS
- Database: SQLite (default, can be changed)
- Other: Docker (optional for containerization)
- Python (3.8 or above)
- Git
- (Optional) Docker and Docker Compose
-
Clone the repository:
-
Install dependencies:
- pip install -r requirements.txt
-
Create a virtual environment
- python -m venv ./env
- cd env/scripts
- activate
-
Add the .env file in the root directory
- SECRET_KEY=SECRET_KEY
- DEBUG=True
- ALLOWED_HOSTS=localhost,127.0.0.1
-
Set up your database:
- python manage.py makemigrations
- python manage.py migrate
-
Create a superuser:
- python manage.py createsuperuser
-
Run the development server:
- python manage.py runserver
-
Access the application at
http://localhost:8000/
- Register an account.
- Log in and add your lockers.
- Set up access codes for each locker.
- Monitor locker status on the dashboard.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more information.
This README provides a comprehensive guide to setting up and running the Quotes Application locally. If you encounter any issues or have questions, please feel free to open an issue on the repository.