/cds-final-flask-shop

A simple back-end e-commerce shop built with flask

Primary LanguagePython

CoderSchool Final Project - CDS-Ecom-B

Created with love by: Van Mit

This is a simple e-commerce rest back-end application built using python and flask. A motivation and project brief can be found on github-gist

Created with love by: Van Mit

It is currently roughly 30% complete.

Implemented Stories

  • User can performs CRUD on products through api call
  • Admin Panel to administer models

To Be Implemented

  • User can login and signup
  • User can add, show, delete, update orders
  • Sale Admin can only add, update, and delete their products

Prerequisites

Postgresql should be install on your local system. Username, user's password, and database' name should be available as showed in these instructions

Installation Instructions

Clone this repository and run pip install -r requirements.txt and/or follow these instructions

Deployment

the application can be deployed to Heroku following these instructions

Database Schema

An intended database squema

web app demo

rest backend

Endpoints

  • GET /api/products
  • GET /api/products/:id
  • POST /api/products
  • PUT /api/products/:id
  • DELETE /api/products/:id

Time Spent and Lessons Learned

Time spent: 20 hours spent in total.

Describe any challenges encountered while building the app.

License

Copyright ©

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.