This project is a RESTful API built with Django REST Framework to manage an online store. It provides endpoints to handle products, categories, users, orders, and more.
- CRUD for products and categories.
- User management and authentication.
- Endpoints to place orders.
- Pagination, filtering, and search.
- API documentation with Swagger/OpenAPI.
- docs\dependencies.txt
-
Clone this repository:
git clone https://github.com/vaglito/django-rest-store.git cd django-rest-store
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
You can also run the project using Docker:
-
Build the Docker image:
docker build -t django-rest-store .
-
Run the Docker container:
docker run -p 8000:8000 django-rest-store
-
Access the API at
http://127.0.0.1:8000/api/
. If Swagger is enabled, you can view the interactive documentation athttp://127.0.0.1:8000/swagger/
.
Access the API at http://127.0.0.1:8000/api/
. If Swagger is enabled, you can view the interactive documentation at http://127.0.0.1:8000/swagger/
.
django-rest-store/
├── manage.py
├── requirements.txt
├── Dockerfile
├── store/
│ ├── models.py
│ ├── serializers.py
│ ├── views.py
│ ├── urls.py
│ └── ...
└── README.md
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE
file for more details.