Linux

  1. Install Python + Git

    sudo apt update
    sudo apt install git python3
    
  2. Install mkCert

    sudo apt install libnss3-tools
    curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
    chmod +x mkcert-v*-linux-amd64
    sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
    
  3. Install Docker + Compose

    1. Docker

    sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    sudo apt-get update
    sudo apt-get install -y docker-ce
    
    1. Docker Compose

    sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*?(?=")')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    
    1. Add User to docker-group

    sudo groupadd docker
    sudo usermod -aG docker $USER
    
  4. Clone the Repo

    git clone https://github.com/Winkler-Jonas/Tama.git
    
  5. Navigate to the project folder

    cd Tama/
    
  6. Setup the project

    python3 setup.py dev
    
  1. Start / Stop the App

    • Start the application

    # First time build
    docker-compose up --build
    # Afterwards
    docker-compose up
    
    • Stop the application

    docker-compose down
    # If you need to remove volumes
    docker-compose down -v
    
  1. Access the App

    https://localhost

  2. To test the App / PWA on your mobile

    1. Copy the rootCA.pem to your phone

    2. Install the certificate.