https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
Deployed: https://anothermicroblog.herokuapp.com
- Exporting posts will not work
- Full text search works with Postgresql
- Site may not be up because of free dyno limitation
Uses bootstrap-flask which supports Bootstrap 5.
HTTP Method | URL | Notes |
---|---|---|
GET | /api/posts/<id> | Return a post. |
GET | /api/posts/<username> | Return the collection of posts by user. |
POST | /api/posts | Create a new post for user. |
- Test user and post model creation
- Test user and post addition to database
- Test follow and unfollow actions
- Test response of routes for anonymous user
- Test response of routes for authenticated user
- Test response of routes for authorization token