Skip to content

Catalog of recipes in which users can add, edit, delete and view other recipes

Notifications You must be signed in to change notification settings

arthurchan1111/catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipe Catalog

This is a project made with Flask that allows Users to add their own recipes. Users can edit, delete or update their recipes.

Dependencies

Flask 0.9

SQLite 2.6.0

SQL Alchemy 1.1.10

Bootstrap

If using vagrant you can ignore the above:

VirtualBox

Vagrant

Vagrant Config File

Installation

Vagrant Users

  1. In the root directory use the command:
vagrant up
  1. Once finished type in:
vagrant ssh
  1. Once logged in type:
cd /vagrant

Get this repository

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

Set up Google OAuth2 application

  1. Go to your app's page in the Google APIs Console — https://console.developers.google.com/apis

  2. Choose Credentials from the menu on the left.

  3. Create an OAuth Client ID.

  4. Click on configure consent screen

  5. Type in a product name and save

  6. When you're presented with a list of application types, choose Web application.

  7. Set the authorized JavaScript origins to http://0.0.0.0:5000 and http://localhost:5000

  8. Click create client ID

  9. Click download JSON and save it into the root directory of this project.

  10. Rename the JSON file to client_secret.json

  11. In the file login.html change the data-clientid="" to the client_id which can be found in client_secret.json

Set up database and start application

  1. In the terminal type in:
psql
  1. Then enter the command below to create a blank database:
CREATE DATABASE catalog;

Type in to exit out of the postgresql terminal:

\q
  1. Go to the root directory of this project and type:
python database_setup.py
  1. Then type in:
python application.py
  1. In your browser type in http://0.0.0.0:5000 or http://localhost:5000

About

Catalog of recipes in which users can add, edit, delete and view other recipes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published