Table of Contents
A text-based, meal planner web server that allows users to create meal plans for the current day or a future day. Development has come to a halt.
- Create an account
- Delete an account
- Update account password or email address
- Create a meal plan
- Delete a meal plan
- Update a meal plan
- View all meal plans
- Python3
- PostgreSQL
- An API platform such as Postman
-
Clone the repository to a folder on your local machine.
-
In your terminal, move into the root of your project directory and run the following commands to create your virtual environment.
$ python3 -m venv venv $ source venv/bin/activate $ pip install -r requirements.txt $ touch .env
-
Run PostgresSQL from your terminal and create a database for development and testing.
$ CREATE DATABASE db_name; $ CREATE DATABASE db_test_name;
-
Copy and paste the URIs below into your
.env
file.SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://postgres:postgres@localhost:5432/db_name SQLALCHEMY_TEST_DATABASE_URI=postgresql+psycopg2://postgres:postgres@localhost:5432/db_test_name
-
Use an API platform to make requests.
{
"username": "janeydoe53",
"password": "df35f~4g*",
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]"
}
"User janeydoe53 successfully created."
{
"title": "Krispy Kreme Doughnuts Original Glazed Doughnut",
"type": 4,
"calories": 190,
"date": "Wed, 15 Mar 2023"
}
"Krispy Kreme Doughnuts Original Glazed Doughnut meal plan for user eggpioneer10 successfully created."