Code Monkey home page Code Monkey logo

shop-manager's Introduction

Shop-manager

This is the backend/Endpoints for the store-manager-UI

Badges

Build Status Maintainability Coverage Status Codacy Badge

Features

  • Admin can add a product
  • Admin or store attendant can get all products
  • Admin or store attendant can get a specific product.
  • Store attendant can add a sale order.
  • Admin can get all sale order details.

API Endpoints

REQUEST ROUTE FUNCTIONALITY
GET /api/v1/products Fetches all products
GET api/v1/products/<product_id> Fetches a single product
GET api/v1/sales Fetches all sales records
GET api/v1/sales/<sales_id> Fetches a single sales record
POST api/v1/products Creates a product
POST api/v1/sales Creates a sales order

Getting started with the app

Modules and tools used to build the endpoints

Installation

Create a new directory and initialize git in it. Clone this repository by running

$ git clone URL   which in this case is https://github.com/masete/Shop-manager.git

Create a virtual environment. For example, with virtualenv, create a virtual environment named venv using

$ virtualenv venv

Activate the virtual environment

$ cd venv/scripts/activate

Install the dependencies in the requirements.txt file using pip

$ pip install -r requirements.txt

Populate the requirements.txt using

$ pip freeze > requirements.txt

Start the application by running

$ python run.py

Test your setup using [postman](www.getpostman.com) REST-client
You can checkout my postman collections from :
https://documenter.getpostman.com/view/5131975/RWgxvFbt
 
The APP is hosted on heroku, checkout this Link: https://store-manager-vii.herokuapp.com/


Hope you had a nice ride

shop-manager's People

Contributors

masete avatar

Watchers

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