Added Requirements.txt and added description to run the code on loacl host.(Quick Guide)

This commit is contained in:
Devyash
2017-03-18 16:55:03 -04:00
parent cc8f7bb9cf
commit 03c3f74e5f
2 changed files with 50 additions and 0 deletions

View File

@@ -87,6 +87,21 @@ Thanks [@eyedol](https://github.com/eyedol)
1. When you're ready to start memorizing, click either "General" or "Code"
in the top menu.
## How to run it on local host (Quick Guide)
1. Install dependecies
a. Install [Python ](https://www.python.org/download/releases/2.7/)
b. Add python as environment variable [windows](http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7)
c. To install pip, securely download [get-pip.py](https://bootstrap.pypa.io/get-pip.py)
d. Run ```python get-pip.py```in terminal
e. Run ``` pip install -r requirements.txt``` in terminal after going to correct folder
2. Open flash_cards.py and uncomment the line 52-55 begining from ``` @app.route('/initdb')```
3. Type ```python flash_cards.py```
4. Login using id:USERNAME='admin', PASSWORD='default. Open localhost:5000/initdb
Everytime you wish to run your db just open folder in terminal and run ```python flash_cards.py```
## How to run with Docker
*Provided by [@Tinpee](https://github.com/tinpee) - tinpee.dev@gmail.com*

35
requirements.txt Normal file
View File

@@ -0,0 +1,35 @@
boto==2.40.0
chardet==2.3.0
click==6.7
configparser==3.5.0
cryptography==1.5
duplicity==0.7.6
enum34==1.1.6
Flask==0.12
functools32==3.2.3.post2
future==0.15.2
gyp==0.1
httplib2==0.9.2
idna==2.1
ipaddress==1.0.16
itsdangerous==0.24
Jinja2==2.9.4
jsonschema==2.5.1
lockfile==0.12.2
MarkupSafe==0.23
ndg-httpsclient==0.4.2
psutil==4.2.0
pyasn1==0.1.9
pycurl==7.43.0
pygobject==3.22.0
pyOpenSSL==16.1.0
python-apt==1.1.0b5
python-cloudfiles==1.7.10
pytz==2016.10
pyxdg==0.25
requests==2.11.1
scour==0.32
six==1.10.0
urllib3==1.15.1
virtualenv==15.1.0
Werkzeug==0.11.15