Skip to content

Commit

Permalink
Add requirements.txt and tips
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Apr 21, 2020
1 parent 6b4cce1 commit 5d504f0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ __pycache__
*.db
htmlcov/
.coverage
venv
env
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,28 @@ Demo: http://watchlist.helloflask.com

## Installation

clone:
```
$ git clone https://github.com/greyli/watchlist.git
$ cd watchlist
```
create & active virtual enviroment then install dependencies:

option 1 (with Pipenv):
```
$ pipenv install --dev
$ pipenv shell
```

option 2 (with venv/virtualenv + pip):
```
$ python -m venv env # use `virtualenv env` for Python2, use `python3 ...` for Python3 on Linux & macOS
$ source env/bin/activate # use `env\Scripts\activate` on Windows
$ pip install -r requirements.txt
```

generate fake data then run:
```
$ flask forge
$ flask run
* Running on http://127.0.0.1:5000/
Expand Down
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
click==7.0
flask-login==0.4.1
flask-sqlalchemy==2.3.2
flask==1.0.2
itsdangerous==1.1.0
jinja2==2.10
markupsafe==1.1.0
python-dotenv==0.10.1
sqlalchemy==1.2.16
werkzeug==0.14.1
# dev
coverage==4.5.2

0 comments on commit 5d504f0

Please sign in to comment.