Teaching Fellow help for students working on LC-101 Unit 2 final assigment Blogz
- modularize the application by splitting the MVC pieces into separate modules
- more information
git clone https://github.com/the-vampiire/blogz
conda env create -n blogz -f env.yml
source activate blogz
- more information
- use MAMP or if you have
mysql
installed usemysqld
- make sure you have a login and password
- create a database called
blogz
- create the file outside of the
app/
directory - add the following variables
- the port will typically default to
3306
or8889
depending on the database server you use
DB_URI = 'mysql+pymysql://USERNAME:PASSWORD@localhost:PORT/blogz'
SESSION_SECRET = 'SECRET GOES HERE'
- start using
python run.py
- Log in (or register for a new account). The main page should display a list of users. Clicking on a user should redirect to a page displaying all blog posts written by them.
- Navigate to the page displaying all posts by all users. The author should be displayed below each post, and clicking on their name should redirect you to that user’s blog page.
- Click “New Post”, create a new post, and check that you are redirected to a page with just that individual entry. The username of the author should be shown at the bottom.
- Clicking on that username should redirect to that user’s blog page.
- Navigate to the page displaying all posts. The new post should be on that page with the username listed underneath.
- Log out. Click all posts and make sure you can still see this page. Click new post, and you should be redirected to the login page.