The application manages the drink menu for a coffee shop. It can:
- Display graphics representing the ratios of ingredients in each drink.
- Allow public users to view drink names and graphics.
- Allow the shop baristas to see the recipe information.
- Allow the shop managers to create new drinks and edit existing drinks.
Set up with Auth0. The user will be re-directed to an Auth0 page for sign-on and back to the website if the log-on attempt is successful. Role-based access control (RBAC) is enabled. The roles and permissions are as follows:
- Barista
get:drinks-detail
- Manager
get:drinks-detail
post:drinks
patch:drinks
delete:drinks
Flask server + SQLAlchemy + SQLite
cd
into the backend
directory, create a virtual environment and install dependencies:
cd backend
virtualenv -p /usr/bin/python3.7 venv
source venv/bin/activate
pip3 install -r requirements.txt
To run the development server,
FLASK_APP=api.py flask run --reload
Import the collection ./starter_code/backend/udacity-fsnd-udaspicelatte.postman_collection.json
in Postman and send requests.
Angular + Ionic
cd
into the frontend
directory and install dependencies by running
cd frontend
npm install
To run the development server, and run:
ionic serve