Now that we’ve fundamental thought of what’s Flask and the way you should use Flask to improvement REST primarily based software in Python, its time to deep dive into the course.
1. The Teacher Evaluate
Jose Salvatierra is the course teacher for studying Relaxation APIs with Flask and python. He has greater than seven years of expertise in software program improvement, and he helped greater than 200K college students to study python in numerous fields reminiscent of automated software program testing and internet improvement.
2. Course Content material
Now that we learn about teacher Jose, its time to test what precisely is canopy into this course and the way effectively they’re lined.
2.1. A Full Python Refresher
This part takes probably the most time in comparison with different ones, and it’ll assist you to study the python language from scratch if you have no earlier expertise on this language. You’ll study variables, booleans, statements, features, courses, object-oriented programming, and so on.
2.2. Your First REST API
The REST (Representational State Switch) API is an API that makes use of the HTTP request for speaking with totally different internet companies. You’ll set up the Flask framework for constructing the net software and study a few of the REST rules, create the applying endpoint, and use the postman for API testing.
2.3. Flask-RESTfull for extra environment friendly improvement
You’ll begin studying concerning the virtualenv, a instrument that means that you can create an remoted python setting and create your first Flask-RESTfull app. You’ll find out about Take a look at-first API design and how one can make the authentication system that enables individuals to create accounts in your app. Lastly, learn to delete gadgets and create and replace them.
2.4. Storing sources in a SQL database
You’ll begin studying how one can retailer the information within the SQL database. You’ll use python to work together with the database and carry out actions reminiscent of retrieving the person’s information from the database, writing the person information to the database, stopping the duplicate username within the database, and writing & deleting gadgets from the database.
2.5. Simplifying storage with Flask-SQLAlchemy
On this part, you’ll attempt to enhance the venture construction and maintainability by grouping the recordsdata and courses and in addition learn to create Python packages. Additionally, you will learn to create person and merchandise fashions and use the postman to confirm whether or not the brand new adjustments are working or not. Lastly, use the SQLAlchemy within the app, like creating tables and implementing the itemModel.
2.6. Git — model management
Git is software program builders use to trace the adjustments within the recordsdata and is normally utilized in collaborative programming when many individuals develop the identical software program. This part will educate you to make use of it and set up it on macOS and Home windows. Additionally, you will use the SSH keys for safety and make the README file in your repository.
2.7. Deploying Flask app to Heroku
After we have accomplished our venture, it’s essential to deploy it on a server referred to as Heroku. So you’ll begin first by importing the code venture to Github after which organising the Heroku server for accepting the Flask app venture and including the required recordsdata to the venture. Once more, you’ll use the postman to check the deployed API and add the PostgreSQL database to the Heroku app.
2.8. Deploying Flask apps to our server
This part will assist you to deploy it on this server and plenty of different issues, reminiscent of putting in PostgreSQL in Ubuntu and testing your API earlier than launching your product.
2.9. Safety in your REST APIs
You’ll learn to get a site title in your web site after which study the totally different choices of the Cloudflare which can be used to make the request safe and alter it from HTTP to HTTPS. You’ll study concerning the DNS and arrange these DNS data.
2.10. Token refreshing and Flask-JWT-Prolonged
You’ll study to create a person useful resource for testing and testing it with the postman. Additionally, you will log in with Flask-JWT-Prolonged. You’ll learn to add the JWT claims and carry out a token refresh within the REST API.
Conclusion
Thanks for studying! This was a evaluation of one of many good programs obtainable on the web to find out about utilizing the Flask framework for constructing vital initiatives and internet functions with many customizations and options for this internet app.