Skip to content

IMADILKHAN/About-The-Fit

Repository files navigation

This is an ecommerce website with backend built in Django and frontend in react with braintree payment gateway integration. It covers following technical topics in 1 app:-

  1. Database modeling with sqllite (see models.py)
  2. API to performance CRUD Operations on database and Custom User authentication with Django-Rest-Framework (see views.py and `serializer.py)
  3. Payment Gateway Integration with Braintree
  4. Frontend consuming api with React

homePage product_details

Start Project locally

Make sure you cd into the correct folder (with all app files) before following the setup steps. Also, you need the latest version of Python 3

To start and run the local development server,

  1. Initialize and activate a virtualenv:
$ pipenv shell
  1. Install the dependencies:
$ pipenv install -r requirements.txt
  1. Change database config so it can connect to your local sql database

  2. Run the backend api server:

$ python3 manage.py runserver
  1. Run the front-end react app
$ cd frontend 
$ npm init 
$npm run server 

API Documentation

Here you can find all existing endpoints, which methods can be used, how to work with them & example responses you´ll get.

Available Endpoints

Here is a short table about which ressources exist and which method you can use on them.

                      Allowed Methods
   Endpoints    |  GET |  POST |  DELETE | PATCH  |
                |------|-------|---------|--------|
  /user         |  [Y] |  [Y]  |   [N]   |   [N]  |   
  /product      |  [Y] |  [Y]  |   [Y]   |   [Y]  |   
  /product/<id> |  [Y] |  [N]  |   [Y]   |   [N]  |   
  /order        |  [Y] |  [Y]  |   [N]   |   [N]  |   
  /category     |  [Y] |  [Y]  |   [N]   |   [N]  |   

cart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published