-
Notifications
You must be signed in to change notification settings - Fork 276
Description
Canvas Lession: https://learning.flatironschool.com/courses/6901/pages/deploying-a-flask-api-to-render?module_item_id=599714
In this module, it is extremely unclear where certain code/files should be run/created. In the beginning of the lesson, it says:
"Creating a Flask App to Deploy
We'll be following the steps in Render's "Deploy a Flask App"Links to an external site. guide, so if you get stuck and are looking for more assistance, check that guide first.
The first thing we'll need to do is create our new Flask application. Make sure you're in a non-lab directory, then run:
mkdir bird-app && cd $_
pipenv install Flask gunicorn psycopg2-binary Flask-SQLAlchemy Flask-Migrate SQLAlchemy-Serializer Flask-RESTful
**NOTE: You may want to specify versions for these packages when you work on your Phase 4 and Phase 5 projects. This will prevent updates to these modules from breaking your code. You can check all versions with the command pipenv requirements.
This will set create an application directory and install some valuable libraries for building a RESTful API. Let's also run the following command to generate a requirements.txt file:
pipenv requirements > requirements.txt
requirements.txt is very similar to a Pipfile- the primary difference here is that instead of supporting a local virtual environment through pipenv, it supports the creation of an application environment on a PaaS platform. (There are some different tools that use this file as well.)"
then, the lesson goes into making a PostgreSQL database and subsequently jumps into building the 'demo app'. There are no clear instructions as to where this should be. Should it be in the same file as the above code? Should it be in the file for the lab? I do not think this is clear at all and now i've spent over an hour trying to figure out where everything should be instead of focusing on learning this particular lesson. I hope this is helpful so someone can clarify for other students down the road.