8000 GitHub - arthurarty/shopping_cart: A shopping cart api designed in Python.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A shopping cart api designed in Python.

Notifications You must be signed in to change notification settings

arthurarty/shopping_cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maintainability

shopping_cart

A shopping cart api designed in Python. The aim of this repo was to create a database wrapper using plain SQL and named tuples. Design patterns implemented include the singleton design pattern. Abstract Base Classes are used to create the DB interface. (SOLID principles.)

How to set up.

  • Create a postgres database.
  • Clone the repo.
  • Ensure you are on the dev branch.
  • Create a .env file from the .env_example.
  • Run command python create_tables.py. This runs the code in the file create_tables.py which creates the necessary tables for the application to work.

Run application

  • Run the command python run.py.

Expected output

 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 125-482-972
  • Use postman to interact with application.

Project Overview

Endpoint Functionality Note
POST /auth/signup Register a user
POST /auth/login Login a user

Built With

  • FLask : Flask is a micro web framework written in Python.
  • abc : abc This module provides the infrastructure for defining abstract base classes (ABCs) in Python.

Authors

About

A shopping cart api designed in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0