Merge pull request #42 from ahmadsherdar/patch-1

Update README.md
This commit is contained in:
John Washam
2019-08-10 11:41:12 -07:00
committed by GitHub

View File

@@ -96,13 +96,18 @@ Thanks [@eyedol](https://github.com/eyedol)
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
5. Add pip to your PATH system variable [windows](https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command)
6. Run ``` pip install -r requirements.txt``` in terminal after going to correct folder
2. Open flash_cards.py and uncomment the line 52-55 beginning from ``` @app.route('/initdb')```
3. Type ```python flash_cards.py```
3. Type ```python flash_cards.py``` - if you get error for flask then use ```python -m pip install Flask``` first then run ```flash_card.py``` file
4. Open localhost:5000/initdb
5. Login using id:USERNAME='admin', PASSWORD='default.
6. Comment the line 52-55 in flash_cards.py
NOTE: If you wish to use John's flash cards then also do following steps:
1. Copy db files such as ```cards-jwasham-extreme``` OR ```cards-jwasham``` and paste them in db folder
2. Edit file ```flash_cards.py``` line 11 and replace cards with any of the other database files
3. Repeat the above steps from step 3
Every time you wish to run your db just open folder in terminal and run ```python flash_cards.py```
## How to run with Docker