From 90b7f499a0c8262e5f6594d943170e2e1b147ca9 Mon Sep 17 00:00:00 2001 From: ahmadsherdar <47474765+ahmadsherdar@users.noreply.github.com> Date: Sat, 10 Aug 2019 00:51:17 +0500 Subject: [PATCH] Update README.md I have changed some information related to opening the document in localhost in windows. These were the problems and their solutions that I encountered on my way to opening these flashcards for myself on my localhost. --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d4e659..5243796 100644 --- a/README.md +++ b/README.md @@ -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