Skip to content

abaruah117/61AWorkshop_Skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Instructions

Mac

  1. Install Brew (if not already installed)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install pip (if not already installed)
$ [sudo] easy_install pip
$ pip --version
  1. Install virtualenv (if not already installed)
$ [sudo] pip install virtualenv
$ virtualenv --version
  1. Set up your virtual environment
$ virtualenv env
$ source env/bin/activate
  1. Install Flask (and the other dependencies)
pip install -r requirements.txt
  1. Run the Flask server!
$ python app.py

Windows

  1. You should already have python3 and pip installed from the first CS61A lab. To confirm that you have pip run pip -V and make sure it outputs something like pip 9.0.1 from... (it's okay if the version number is a little different).

  2. Open git bash and navigate to this directory

  3. Create a virtual environment

$ python -m venv env

If you normally use py or python3 instead of python to run python files use that instead.

  1. Activate the virtual environment
$ source env/Scripts/activate

You will have to do this every time you open a new terminal.

  1. Install Flask (and the other dependencies)
$ pip install -r requirements.txt
  1. Run the Flask server!
$ python app.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors