Giter Site home page Giter Site logo

intro-ecommerce's Introduction

intro-ecommerce

objective

The objective of this project is to create a simple e-commerce backend using Django.

Database

Tables

  • Product
  • Company
  • Category

Schema

  • Product

    Field Type Description
    id int Primary Key
    name varchar Product name
    color varchar Product color
    price decimal Product price
    description varchar Product description
    company int One to Many relationship with Company
  • Company

    Field Type Description
    id int Primary Key
    name varchar Company name
  • Category

    Field Type Description
    id int Primary Key
    name varchar Category name
    products int Many to Many relationship with Product

API

Endpoints

Method Endpoint Description
GET /api/products Get all products
GET /api/products/<id> Get a product by id
POST /api/products Create a product
POST api/products/<id>/update Update a product
POST api/products/<id>/delete Delete a product
GET /api/companies Get all companies
GET /api/companies/<id> Get a company by id
GET /api/companies/<id>/products Get all products by company id
POST /api/companies Create a company
GET /api/categories Get all categories
GET /api/categories/<id> Get a category by id
GET /api/categories/<id>/products Get all products by category id
POST /api/categories Create a category

intro-ecommerce's People

Contributors

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