This is a project made with Flask that allows Users to add their own recipes. Users can edit, delete or update their recipes.
If using vagrant you can ignore the above:
- In the root directory use the command:
vagrant up
- Once finished type in:
vagrant ssh
- Once logged in type:
cd /vagrant
In your terminal type in:
git clone https://github.com/arthurchan1111/catalog.git
Or download the repository here
If using vagrant:
Copy the files into catalog directory of the Vagrant Config File
-
Go to your app's page in the Google APIs Console — https://console.developers.google.com/apis
-
Choose Credentials from the menu on the left.
-
Create an OAuth Client ID.
-
Click on configure consent screen
-
Type in a product name and save
-
When you're presented with a list of application types, choose Web application.
-
Set the authorized JavaScript origins to http://0.0.0.0:5000 and http://localhost:5000
-
Click create client ID
-
Click download JSON and save it into the root directory of this project.
-
Rename the JSON file to client_secret.json
-
In the file login.html change the data-clientid="" to the client_id which can be found in client_secret.json
- In the terminal type in:
psql
- Then enter the command below to create a blank database:
CREATE DATABASE catalog;
Type in to exit out of the postgresql terminal:
\q
- Go to the root directory of this project and type:
python database_setup.py
- Then type in:
python application.py
- In your browser type in http://0.0.0.0:5000 or http://localhost:5000