Intro to Flask Setup
Setup
Open your Terminal application and navigate to your ~/code/ga/lectures directory:
cd ~/code/ga/lectures
Make a new directory called intro-to-flask, then enter this directory:
mkdir intro-to-flask
cd intro-to-flask
Initialize a new virtual environment inside your project directory and install Flask and Python’s PostgreSQL library:
pipenv install flask
This command will create a new Pipfile and Pipfile.lock in your project directory, specifying Flask as a dependency.
Activate the virtual environment:
pipenv shell
To deactivate the virtual environment when you’re done, simply type:
exit
Open the contents of the directory in VSCode:
code .