Skip to content

Build EMBArk

Benedikt Kuehne edited this page Jan 18, 2022 · 18 revisions

Initial Setup


  1. Clone EMBArk github repository i.e git clone [email protected]:e-m-b-a/embark.git

  2. Change directory to root of the repository i.e embark

  3. apt-packages:

    • git
    • docker.io
    • docker-compose
    • python3
    • python3-django
    • python3-pip
    • python3-dev
    • default-libmysqlclient-dev
    • build-essential
    • pipenv
    • npm
    • pycodestyle
    • python3-pylint-django
  4. pip-packages:

    • Django = ">=4.0.1"
    • channels
    • channels-redis
    • daphne (Or other asgi-mod)
    • mysqlclient
    • django-apscheduler
    • mod-wsgi-standalone (Or other apache uwgi-mod)
    • django-dotenv
    • Rx
    • inotify-simple
    • psutil
    • msgpack
    • django
    • pycodestyle
    • djlint
    • pylint-django
  5. define Runtime variables (rec in .env file):

    • DATABASE_NAME
    • DATABASE_USER
    • DATABASE_PASSWORD
    • DATABASE_HOST
    • DATABASE_PORT
    • MYSQL_PASSWORD
    • MYSQL_USER
    • MYSQL_DATABASE
    • REDIS_HOST
    • REDIS_PORT
    • SECRET_KEY
  6. customize or create new config under ./embark/embark/settings/ and define as DJANGO_SETTINGS_MODULE

  7. start Redis and MySQL

  8. start uwsgi and asgi using ./embark/manage.py