https://github.com/burritosoftware/hw3_pythonflask
A simple recipe app made for CMPE-131.
https://github.com/burritosoftware/hw3_pythonflask
Last synced: over 1 year ago
JSON representation
A simple recipe app made for CMPE-131.
- Host: GitHub
- URL: https://github.com/burritosoftware/hw3_pythonflask
- Owner: burritosoftware
- Created: 2025-03-26T01:07:13.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-26T04:50:11.000Z (over 1 year ago)
- Last Synced: 2025-04-14T02:56:07.907Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Recipe App (hw3_pythonflask)

[](https://wakatime.com/badge/github/burritosoftware/hw3_pythonflask)
A simple recipe app made for CMPE-131.
In my implementation, I chose to take it a step forward and implement flask-login, a signup page, and [water.css](https://watercss.kognise.dev/) to make it look prettier.
# Setup
1. Make sure you have Python, Git, and pip installed on a Linux system.
2. Clone this repository and switch to it.
```bash
git clone https://github.com/burritosoftware/hw3_pythonflask
cd hw3_pythonflask
```
3. Create a virtual environment to run the app and initiate it.
```bash
python3 -m venv venv
source venv/bin/activate
```
4. Install dependencies.
```bash
pip3 install -r requirements.txt
```
5. If you would like to not use the starter database, which has example recipes and example accounts, delete it.
```bash
rm app/app.db
```
5. Initialize the database by running these commands.
```bash
flask shell
from app import db
db.create_all()
exit()
```
6. Run the application with the dev server.
```bash
python3 run.py
```
# Usage
You can sign up for an account or log in to an existing account. Logged in users can create new recipes and delete any recipe. Logged out users can only see the recipe list.
An example account and example recipes are included in the starter database `app.db`.
Log in using username `testuser` and password `usertest`, or `tacobell` and `belltaco`. You can also sign up for a new account.
# Disclaimer
Unlike my other projects, this one is an implementation for a college assignment and is source-available so I can submit it, but is **NOT** freely licensed. This means that if you're a student and you want to plagarize this, please don't! It's not legally allowed, sorry :(