You will need pip, git and python3 installed.
- Clone the repo:
$ git clone https://github.com/sugataa/word_count.git
$ cd word_count
- 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
.
- Install dependencies with pip:
(env)$ pip install -r requirements.txt
- Ensure tests are passing:
(env)$ python app-test.py
- Run the application:
(env)$ python app.py
- Navigate to http://localhost:5000