Git Product home page Git Product logo

challeng3's Introduction

Challeng3

Store Manager is a web application that helps store owners manage sales and product inventory records. This application is meant for use in a single store. Only the store admin can access this endpoint. Router used'api/v2/products' POST METHOD.

GET product endpoint

No access token required.The endpoint enables a user to view all the available products in the inventory. _Router used_'api/v2/products' GET METHOD.

GET Single product

No access token required.Enables a user to get a single product from the inventory. _Router used_'api/v2/products/1' GET METHOD

POST sale endpoint

Only the store attendant is allowed to access this endpoint. Enables the store attendant to post a sale. _Router used_'api/v2/sales' POST METHOD

Get all sales endpoint

The endpoint allows the admin to get all the sale records posted by the store attendants.Only accessible by the admin. _Router used_'api/v2/sales' GET METHOD.

Get single sale record endpoint

The endpoint is only accessible to the store attendant who created it and the store admin. Enables the two to get the sale record. _Router used-'api/v2/sales/1' GET METHOD.

Installation

  1. Open a repo in github
  2. Clone the repository into the local machine through the terminal by: git clone https://github.com/winniekariuki/Challenge3.git
  3. Create a virtual enviroment with the command $ virtualenv -p python3 env
  4. Activate the virtual enviroment with the command `Desktop/Challeng3/env/Scripts/activate`
  5. cd back into the Challeng3 where you include all your code related files.
  6. Install requirements $ pip install -r requirements.txt

How to test

The endpoints can be tested through the postman by sending the link gotten from the terminal after running the app with the their respective routers

To test if the tests pass you run the pytest command

challeng3's People

Contributors

winniekariuki avatar

Watchers

James Cloos 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.