Basic catalog made with Flask and utilising Google' Sign in api It also implements an sqlite database, managed with SQLAlchemy
You will require Vagrant, the Vagrantfile and Virtualbox
- Clone the repo to your device: https://github.com/RoseannaM/catalog
- Install Vagrant and Virtual box, and clone the vagrantfile into your directory.
- cd into your directory and spin up and sign into vagrant with
vagrant up
andvagrant ssh
respectively - Once in, cd /vagrant and run
python database.py
to create the database, thenpython data.py
to fill it with data - Create a Google API Console project [here] (https://console.developers.google.com/projectselector/apis/library), create your client id and secret.
- Add the secret and client id and urls in the empty fields in the client_secrets.json file.
- Type the command
python main.py
in your terminal. Refer to the docs for troubleshooting
Endpoints have been included to create json blobs for the toys and toystore data