Giter VIP home page Giter VIP logo

eccomerce-api's Introduction

Eccomerce-APi

An E-commerce API built using Django Rest Framework.

Table of Contents

Introduction

This is an e-commerce API built using Django REST Framework (DRF). It allows you to (CRUD) products, users, orders, and order items base on Entity-Attribute-Value Model.

Features

  • Django 4.2 & Python 3.11
  • Install via Pip or Docker
  • Implement Entity Attribute Value model(EAV)
  • Authentication via JWT
  • Media storage using Amazon S3
  • Create Multiple Wishlists
  • Rating for product

technology

  • Celery
  • Postgres
  • JWT
  • Django Rest Framework
  • docker

Installation

Eccomerce-APi can be installed via Pip or Docker. To start, clone the repo to your local computer and change into the proper directory.

git clone https://github.com/ronin1777/Eccomerce-APi.git

pip

python -m venv .venv
# Windows
.venv\Scripts\Activate

macOS
source .venv/bin/activate

(.venv) $ pip install -r requirements.txt
(.venv) $ python manage.py makemigrations
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000

dokcer

First in project root Create a directory named scripts and inside it create a file named run.sh with the same content:

#!/bin/sh

python manage.py makemigrations
python manage.py migrate
python manage.py runserver 0.0.0.0:8000

then run docker-compose

docker-compose up -d --build

Next Steps

If you want to use Docker, follow these steps:

  • Add environment variables:
    1. server: docker
    2. configuration files: select docker-compose file
    3. sevice: select app
    4. Next and create
  • Enable Django support(pycharm):
    1. go to Languages & Frameworks and select Django
    2. Django project root: select crs as root
    3. settings: go to src/shop/envs and select development.py
  • Run &Dbuge Configurations:
    1. edit configuration add Djnago server
    2. Host: 0.0.0.0
    3. python interpereter: select Remote python Docker compose(that environment you created it)

Note

Django support Available only in PyCharm Professional

eccomerce-api's People

Contributors

ronin1777 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.