$ virtualenv -p python3 .
$ pip3 install -r requirements.txt
Then:
$ source bin/activate
To run the web app, simply do in project root (containing 'docker-compose.yml'):
$ docker-compose down ; docker-compose up --build
You can then see the web app at: http://0.0.0.0:8000 or: http://localhost:8000/
To run on VPS, use detach mode:
$ docker-compose down ; docker-compose up --build -d
Follow the recommendations on the Git official documentation: https://git-scm.com/book/en/v2/Git-Tools-Submodules
For the impatient, you can do the following when checking out this main project:
$ git clone --recurse-submodules [email protected]:joshuamhtsang/personal_flask_website.git
then 'cd' into the the checked-out directory and do:
$ git submodule update --remote
The latter command is needed to pull the latest branch commits specified in .gitmodules file.