/ecommerce-store-drf

An ecommerce API built in Django Rest Framework and PostgreSQL

Primary LanguagePythonMIT LicenseMIT

ECOMMERCE STORE (DJANGO REST FRAMEWORK)

alt text

Django Docs: Documentation

PG ADMIN: pgadmin.org

How to run locally

  • Download this repo or run:
    $ git clone git@github.com:kayprogrammer/ecommerce-store-drf.git

In the root directory:

  • Install all dependencies
    $ pip install -r requirements.txt
  • Create an .env file and copy the contents from the .env.example to the file and set the respective values. A postgres database can be created with PG ADMIN or psql

  • Run Locally

    $ python manage.py migrate
    $ python manage.py runserver
  • Run With Docker
    $ docker-compose up --build -d --remove-orphans

OR

    $ make build
  • Test Coverage
    $ pytest --disable-warnings -vv

OR

    $ make test

Docs

alt text

alt text

alt text

ADMIN PAGE E-Store Admin

Check .env.example file for admin credentials

alt text