English Flash Cards
This is a little responsive website that allows ESL learners (me included) to easily make flash cards and quiz themselves for memorization of:
- General English Knowledge
Technologies used when building it:
- Python 3
UI for listing cards. From here you can add and edit cards.
The front of a General flash card.
The reverse (answer side) of an Expression flash card.
How to use this image.
docker run -d -p 8000:8000 --name english-flash-cards paulomigalmeida/english-flash-cards:0.1-sample
Go your browser and type
If you already had a backup file
cards.db. Run following command:
Note: We don't need to rebuild image, just delete old container if you already built.
docker run -d -p 8000:8000 --name english-flash-cards -v :<path_to_folder_contains_cards_db>:/src/db english-flash-cards.
<path_to_folder_contains_cards_db>: is the full path contains
cards.db is inside this folder.
For convenience, if you don't have
cards.db, this container will auto copy a new one from
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/dbjust go to
cards.dbanywhere you want.
-v flag. Type:
docker cp <name_of_container>:/src/db/cards.db /path/to/save
How to restore data ?
- Delete old container (not image):
docker rm english-flash-cards
- Build a new one with
docker run -d -p 8000:8000 --name english-flash-cards -v <path_to_folder_contains_cards_db>:/src/db english-flash-cards
- Voila :)