Setup:
-
Download and extract zip file, open in VS Code.
-
Create your own Github repo with a Python gitignore and your own README, push the code up. Be sure not to upload this README to your own repo.
-
Create a MySQL Database with an appropriate name
-
Change the password and db_name in the .env file to your MySQL password and the database you just created.
- NOTE: Some special characters in the password (especially @ and /) must be url escaped. For a @, use
%40. For a /, use%2F
- Create your virtual environment with:
pipenv installpipenv shell- Once the venv is created, you can start the app at any time with
flask run
- Create your database model(s) in app.py with the required properties, then run
flask db init(Creates tables)flask db migrate -m "Init"(Creates migration)flask db upgrade(Runs migration)
-
Create Marshmallow Schemas in app.py
-
Continue on to create Resource classes and Routes, making sure to test each in Postman!