forked from jwasham/computer-science-flash-cards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,9 @@ Thanks [@eyedol](https://github.com/eyedol) | |
## How to run it on local host (Quick Guide) | ||
1. Install dependecies | ||
*Provided by [@devyash](https://github.com/devyash) - [email protected] Reach out to this contributor if you have trouble.* | ||
1. Install dependencies: | ||
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) | ||
|
@@ -100,11 +102,11 @@ Thanks [@eyedol](https://github.com/eyedol) | |
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``` | ||
Every time 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) - [email protected]* | ||
*Provided by [@Tinpee](https://github.com/tinpee) - [email protected] Reach out to this contributor if you have trouble.* | ||
__Make sure you already installed [docker](https://www.docker.com)__ | ||
|
@@ -123,6 +125,8 @@ Example: `/home/tinpee/cs-flash-cards/db`, and `cards.db` is inside this folder. | |
For convenience, if you don't have `cards.db`, this container will auto copy a new one from `cards-empty.db`. | ||
--- | ||
### How to backup data ? | ||
We just need store `cards.db` file, and don't need any sql command. | ||
- If you run container with `-v <folder_db>:/src/db` just go to `folder_db` and store `cards.db` anywhere you want. | ||
|