Skip to content

vaglito/django-rest-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django REST Store

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.

Features

  • CRUD for products and categories.
  • User management and authentication.
  • Endpoints to place orders.
  • Pagination, filtering, and search.
  • API documentation with Swagger/OpenAPI.

Requirements

  • docs\dependencies.txt

Installation

  1. Clone this repository:

    git clone https://github.com/vaglito/django-rest-store.git
    cd django-rest-store
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Start the development server:

    python manage.py runserver

Docker

You can also run the project using Docker:

  1. Build the Docker image:

    docker build -t django-rest-store .
  2. Run the Docker container:

    docker run -p 8000:8000 django-rest-store
  3. 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/.

Usage

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/.

Project Structure

django-rest-store/
├── manage.py
├── requirements.txt
├── Dockerfile
├── store/
│   ├── models.py
│   ├── serializers.py
│   ├── views.py
│   ├── urls.py
│   └── ...
└── README.md

Contributions

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

ecommerce API in DRF

Resources

Stars

Watchers

Forks

Packages

No packages published