Public Repository

Last pushed: a year ago
Short Description
Mini website for testing general English knowledge memorization.
Full Description

English Flash Cards

This code was originally written by @jwasham and other contributors. I modified according to my needs and built deployment automation scripts to make it easier for future developers/users.

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
    • Vocabulary
    • Prepositions
    • Expressions

Technologies used when building it:

  • Python 3
  • Flask
  • SQLite


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.

Run container: docker run -d -p 8000:8000 --name english-flash-cards paulomigalmeida/english-flash-cards:0.1-sample

Go your browser and type http://localhost:8000

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.
Example: /home/user/english-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.
  • Without -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 -v flag:
    docker run -d -p 8000:8000 --name english-flash-cards -v <path_to_folder_contains_cards_db>:/src/db english-flash-cards
  • Voila :)

Happy learning!

Docker Pull Command