Skip to content

romcar/pantry-patron

 
 

Repository files navigation

PantryPatron

Heading

Ever go grocery shopping and wonder. How much money have I spent so far? Well worry no longer PantryPatron can help with just that! Login, create a grocery list in advanced, then when you get to the grocery store go down the list and enter the price. We will take care of the rest. Before you get to the register you will know how much you owe before taxes.

Sub-Heading

This app is for people who just want to keep track of how much money they are spending as they shop. We make the accidental clearing of the calculator a thing of the past. Just don't delete the list.

Summary

PantryPatron is intended for people who are fed up with getting to the cash register after a grocery run and thinking, how the hell did I go over my budget by $50! Happens all the time. Add items before you go to the store then right before you begin enter the prices and quatities you buy and we do the math for you.

Problem

Have you ever tried to use calculator while grocery shopping? The banana's weight 2.75 pounds and it's $0.34 a pound. I don't got time for that.

Solution

Never worry about working those complicated calulators again. Give me how much you bought and how much it cost and we are good.

Quote from You

"Let us do the math for you"

How to Get Started

  1. create an account
  2. log in
  3. create a list
  4. enter item information

Customer Quote

"Damn girl, now I don't have to figure out how to multiply prices vs pounds and risk loosing my history."

Closing and Call to Action

Our software is pretty easy to use. Play around with and see like it before continuing.

Server Endpoints

GET / -- takes you to home page

POST /login -- takes in a username and password in the form of {username: , password: } if the user exists, it creates a session and returns the user's information, location for redirection and grocery lists the user has made.

POST /updateHistory -- takes in an item id at the least. We pass it an updated item history object in order to find and update any record in the database. This endpoint returns the updated database document.

GET /logout -- destroys the session then redirects to login

POST /register -- creates a new user account and redirects to login

POST /search/item -- only really requires and item name. Returns an item document from the database

POST /addItem -- given a item document from the database this endpoint creates an item history and returns a grocerylist with the new item added onto it.

POST /lists/create - used to create a list

POST /updateList -- used to update a list

POST /lists/delete -- used to delete a list

GET /store/search -- return all store documents from the database

POST /store/create -- creates a new store document for the database

pOST /search/users -- searches the database to check if a username exists or not

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%