sdklfjlsdkjf
Phase 4 - Flask
Phase Level Objectives
- Build and run a Flask application
- Create a REST API capable of interacting with a client
- Specify requirements and structure of incoming and outgoing data
Lecture | Notes | Videos | Starter | Solution |
---|---|---|---|---|
1. Intro To Flask | Notes | Video | Starter | Solution |
2. Rest APIs with Flask pt1 | Notes | Video | Starter | Solution |
3. Rest APIs with Flask pt2 | Notes | Video | Starter | Solution |
4. Client Server Communication | Notes | Video | Starter | Solution |
5. Auth pt1 | Notes | Video | Starter | Solution |
6. Auth pt2 | Notes | Video | Starter | Solution |
7. Deployment | Notes | Video | Starter | Solution |
1: Intro to Flask
SWBATs:
- Understand how the Internet works
- Understand how the request-response cycle works
- Understand HTTP protocols
- Intialize a Flask application
- Understand how to use SQLAlchemy within Flask
- Use Flask routing and create views
- Use the Flask shell
2: REST APIs with Flask pt1
SWBATs:
- Explain the concept of REST and RESTful naming conventions
- Build and execute a GET and POST request
- Use Postman to interact with Flask
- Use serializers
3: REST APIs with Flask pt2
SWBATs:
- Build and execute a PATCH and DELETE request
- Discuss the importance of handling exceptions
- Handle exceptions
- Use Flask validations
4. Client Server Communication
SWBATS:
- Discuss MVC architecture
- Connect a React app to a Flask API
- Execute requests from React
- Handle errors in React
- Discuss CORS
5: Authentication pt1
SWBATs:
- Discuss the importance of authentication in web apps
- Explain the difference between authentication and authorization
- Discuss the relationship between cookies and sessions
- Use token-based authentication using cookies and sessions
6: Authentication pt 2
SWBATs:
- Use authorization
- Handle authorization errors on the front end
7: Deployment
SWBATs:
- Deploy an app using Render