Study project. Applying knowledge about SQLAlchemy ORM, Flask framework, and OAuth.
- Install VirtualBox
- Install Vagrant
- Download Vagrant VM
git clone https://github.com/udacity/fullstack-nanodegree-vm.git
- In terminal change directory to
cd <your path>/fullstack-nanodegree-vm/vagrant
- Download project to vagrant folder
git clone https://github.com/msurmenok/Sport-Item-Catalog.git
- In terminal (in vagrant folder) launch virtual machine
vagrant up
(The first launch requires some time to install all dependencies) - Connect to vm
vagrant ssh
- Return to project folder
cd /vagrant/ItemCatalog
- To get credentials for Facebook, create a project in Facebook developer console
- Update file fb_client_secrets.json with your app_id and app_secret
- Go to file
cd templates/login.html
and update value appId in line 9
- To get credential for Google, create a project in Google developer console
- Go to credentials page and add URIs for Web client
- Download json with credentials with name g_client_secrets.json in the ItemCatalog folder
- Go to file
cd templates/login.html
and update value data-clientid in line 66
- To initialize PostgreSQL database run
bash create_db.sh
- Start web server
python application.py