This Django project serves as a simple example showcasing key concepts in backend engineering, including server-side logic, database management and API development.
Before running the project, ensure you have the following installed:
-
Clone the repository:
-
Clone with SSH
git clone git@github.com:kadimasum/backend-demo.git
-
Or clone with HTTPS
git clone https://github.com/kadimasum/backend-demo.git
-
-
Change to the project directory:
cd backend-demo
-
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install project dependencies:
pip install -r requirements.txt
python manage.py runserver
The development server will run at http://localhost:8000/.
-
Create a superuser:
python manage.py createsuperuser
-
Visit http://localhost:8000/admin/ and log in with the superuser credentials.
The API endpoint for retrieving tasks is available at http://localhost:8000/api/tasks/.
- backend-demo/
- app/
admin.py
: Django admin configurations.apps.py
: Django app configurations.models.py
: Django models for data representation.serializers.py
: Django REST framework serializers.views.py
: API views for task-related operations.urls.py
: URL patterns for the app.
settings.py
: Django project settings.urls.py
: Project-level URL patterns.
- app/
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License.