Skip to content

jonathankurniadi/wegobucks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wegobucks

A simple web app for a coffee shop.

Getting started

To run this project on your local machine, you will need

Clone this project to your local machine, and run start.sh <config.yaml file>. The app is accesible at localhost:8080.

API

URL prefix for the api is /api. There are three types of API on this app.

Drink

/drinks : GET method. Return the price list.
/drink-sizes : GET method. Return all drink sizes.
/drink-types : GET method. Return all drink types.

Order

/orders : POST method. Add an order. Require name slug and size slug in JSON on the request body, i.e {"name": "espresso", "size": "tall"}.
/orders?type={type}&size={size} : GET method, only authenticated user. Return all orders, use filter as needed.

Authentication

URL prefix is /auth

/login : POST method. Acquire authentication token. Require name in JSON on the request body, i.e {"name": "admin"}.

Example

You can access the app on https://wegobucks.herokuapp.com.

Built with

About

Wegobucks, a simple web app for a coffee shop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published