Merge pull request #18 from devyash/devyash

Added Requirements.txt and added description to run the code on local host as quick run
This commit is contained in:
John Washam
2017-03-18 14:44:45 -07:00
committed by GitHub
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
1. Install [Python ](https://www.python.org/download/releases/2.7/)
2. Add python as environment variable [windows](http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7)
3. To install pip, securely download [get-pip.py](https://bootstrap.pypa.io/get-pip.py)
4. Run ```python get-pip.py```in terminal
5. 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