Project Setup

You will need pip, git and python3 installed.

  1. Clone the repo:
$ git clone https://github.com/sugataa/word_count.git
$ cd word_count
  1. Create and activate your virtual env:
$ python3 -m venv env
$ source env/bin/activate

NOTE: You know that you are in a virtual env, as the actual "env" is now showing before the $ in your terminal - (env). To exit the virtual environment, use the command deactivate, then you can reactivate by navigating back to the directory and running - source env/bin/activate.

  1. Install dependencies with pip:
(env)$ pip install -r requirements.txt
  1. Ensure tests are passing:
(env)$ python app-test.py
  1. Run the application:
(env)$ python app.py
  1. Navigate to http://localhost:5000