Web page with a fitness supplements catalog where the users can log-in to add new supplements or products.
- Python 3
- HTML
- CSS
- Flask
- Flask SQLAchemy
- OAuth
- Google Login
- Facebook Login
3 Download Fitness_Supplement_App.zip
1 - Extract Fitness_Supplement_App.zip in your preferred folder. Open terminal and change your working directory to the folder where you uncompressed the Zip file using the "cd" command and execute the python file using "phyton3 app.py".
$ vagrant up
$ vagrant ssh
$ cd "Uncompressed Fitness_Supplement_App.zip File Path"
$ phyton3 app.py
2 - Navigate through the different supplements and products using the pointer, a click over "Supplements" will display its products, a click over "Products" will display its information.
3- Login to add, edit and delete products, for supplements you can just add and edit. Once logged in the buttons will be available next to each supplement or product if it was created by the logged user.
To get the information as JSON files the following routes can be used:
Get all supplements: /API/supplement/all/JSON
Get a specific supplement by id: /API/supplement/int:supplement_id/JSON
Get a specific supplement by id: /API/supplement/int:supplement_id/JSON
Get all supplement products by supplement id: /API/supplement/int:supplement_id/product/all/JSON
Get a specific product by id: /API/supplement/int:supplement_id/product/int:product_id/JSON
The facebook login may not work for not facebook API administrator users since it requires a secure connection.
Free Software