Project 3 programming tutorials. To view a live demo click here.
# Clone this repo and navigate to project folder
$ git clone https://github.com/LuizGsa21/p3-programming-tutorials
$ cd p3-programming-tutorials/
Add your Web Client IDs to app/config.py
. If you are having trouble, look for the comment # ADD WEB CLIENT IDs HERE
.
Also in the project root folder include google-secret.json
file provided by the tutorial.
After adding your client IDs:
# start up vagrant
$ vagrant up
# Wait for installation to complete, then SSH into virtual machine
$ vagrant ssh
$ cd /vagrant/
$ python runserver.py
# done :)
runserver.py
creates the application using create_app
factory method in app/app.py
.
create_app
configures all the blueprints, extensions and database model.
Flask blueprints located in app/views/
:
frontend.py
user.py
api.py
oauth.py
Database Models located in app/models
:
article.py
category.py
comment.py
user.py
Python: app/views/oauth.py
JavaScript: app/static/js/app/helpers/LoginManager.js
Python: app/views/frontend.py
Try logging in as admin.
Try logging in as admin ;)
- username:
admin
- password:
password
- NOTE: This will not work on the live demo for security reasons.
Try adding a category.