Skip to content
/ dta Public
forked from 0niel/dta

Digital Teaching Assistant web app.

License

Notifications You must be signed in to change notification settings

V4kodin/dta

 
 

Repository files navigation

Main workflow codecov



Digital Teaching Assistant

Setting Up Development Environment

Ubuntu 20.04 LTS

  1. Install Python 3.10. pyenv can help with switching among different Python versions.

  2. Install poetry and dependencies:

pip install poetry
poetry install
  1. Run tests, launch the app:
poetry shell
make test
make flask

Windows 10

  1. Install Python 3.10. Make sure python is added to PATH. You can check this by navigating to System (Control Panel) -> Advanced system settings -> Environment Variables -> System Variables -> PATH -> Edit.

  2. Install Chocolatey.

  3. Install GNU make:

choco install make
  1. Install poetry and dependencies:
pip install poetry
poetry install
  1. Run tests, launch the app:
poetry shell
make test
make flask-win

Acknoledgements

Thanks to @Plintus-bit for making the awesome logo!

Fruther Steps

If you are using code, press Ctrl+Shift+P in order to activate poetry virtual environment after installation, or just type poetry shell in the terminal. Run unit tests via make test, run the app via make flask, run the linter as make lint, run linter fixes via make fix. If you prefer to use containers, there are make image and make container scripts that will build a Docker image and run the app inside that image. A sample run script for production might look like as follows:

# Use the following if you'd like to seed the database:
# export SEED=1 && sh start.sh
# Don't forget to: unset SEED
export CONFIG_PATH=/home/app/webapp/config
. /home/app/.cache/pypoetry/virtualenvs/app-_h2eKbNq-py3.10/bin/activate
cd src/webapp
waitress-serve --port 8080 --call 'app:create_app'

About

Digital Teaching Assistant web app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.3%
  • Jinja 15.6%
  • Dockerfile 1.6%
  • Other 1.5%