This is the backend repository for the WAME application. It provides the API endpoints, business logic, and database management for the frontend client, built using Django and Django REST Framework.
- Python 3.8+
- pip (Python package installer)
- Git
Follow these steps to set up and run the server locally:
- Clone the repository:
git clone [https://github.com/SAIRAMSSSS/wame_backend.git](https://github.com/SAIRAMSSSS/wame_backend.git) cd wame_backend - Create and activate a virtual environment (recommended):
# For Windows python -m venv venv .\venv\Scripts\activate # For macOS/Linux python3 -m venv venv source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Database setup:
python manage.py makemigrations python manage.py migrate
- Create a superuser (for admin access):
python manage.py createsuperuser
- Run the development server:
The API should now be running at
python manage.py runserver
http://127.0.0.1:8000/.
The project uses environment variables for sensitive settings.
Create a file named .env in the root directory (outside of any app folders) and add the following: