Description
Flask is the tool that can be used to create API server. It is a micro-framework, which means that its core functionality is kept simple, but there are numerous extensions to allow developers to add…
Summary
- Focus on the backend, without frontend and authentication Flask is the tool that can be used to create API server.
- Create below 6 files that are needed for the application models.py which defines the PostgreSQL database, table, and the configuration Run local migrations We can run our local migrations using our file, to mirror how Heroku will run behind the scenes for us when we deploy our application.
- uncomment at the first time running the app """ db_drop_and_create_all() 2. check models.py and compare that to what is in your database actually.