From 03c3f74e5ffc786e672da56e8c9c3843b7f6efeb Mon Sep 17 00:00:00 2001 From: Devyash Date: Sat, 18 Mar 2017 16:55:03 -0400 Subject: [PATCH 1/2] Added Requirements.txt and added description to run the code on loacl host.(Quick Guide) --- README.md | 15 +++++++++++++++ requirements.txt | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 requirements.txt diff --git a/README.md b/README.md index b4367459..476f5bb2 100644 --- a/README.md +++ b/README.md @@ -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* diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..a099dcc0 --- /dev/null +++ b/requirements.txt @@ -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 From 18117bd5916fa8b9feab2da6880fb1fdc60f9754 Mon Sep 17 00:00:00 2001 From: Devyash Date: Sat, 18 Mar 2017 17:04:06 -0400 Subject: [PATCH 2/2] spacing change --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 476f5bb2..b8fcbf21 100644 --- a/README.md +++ b/README.md @@ -90,11 +90,11 @@ Thanks [@eyedol](https://github.com/eyedol) ## 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 + 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```