Skip to content

Kiel-Hyre/automata-mythos

Repository files navigation

About Mythos

Mythos is a compiler created by ArrayIndexOutOfBoundsException. A project for the course Automata of CS in PLM

Requirements

Setup

  • Virtual Environment
  1. Use virtualenv to add a virtual environment
    virtualenv venv
  1. Activate the environment
    source venv/bin/activate  #Ubuntu
  1. Deactivate enviroment
    deactivate
  1. Remove environment
    rm -rf venv

Check this info for windows

  • Install requirements for python3
  1. (Optional) Upgrade Tools
    pip3 install --upgrade setuptools #pip only for Windows
  1. (Optional) Upgrade Pip
    python3 -m pip install --upgrade pip #python only for Windows unless there is other version
  1. Install requirements in requirements.txt
    pip3 install -r requirements.txt
  • Environment Variables
  1. In source folder aligned with manage.py create .env file
    automata-mythos\
        ... # other files
        .env
        manage.py
  1. Create variables inside env file
    1. For development, copy the variables inside the development.env to .env
    2. For production, copy the variables inside the production.env to .env
  • Vue init
  1. yarn the project
    yarn
  1. yarn build
    yarn build
  • Common Commands for Django
  1. Makemigrations
    python3 manage.py makemigrations
  1. Migrate Applications
    python3 manage.py migrate
  1. More django commands info
  • Common Commands for Vue
  1. Project setup
yarn install
  1. Compiles and minifies for production
yarn build
  1. Compiles and hot-reloads for development
yarn serve
  1. See Configuration Reference.

Run Servers

  1. Run server for Django
    python3 manage.py runserver (port) # default is 8000
  1. Run server for Vue
    yarn serve

Notes

  1. Sadly this is two way, so need to run both server seperately
  2. In future, maybe use different containers
  3. Need to seperate production and development key env
  4. No other db installed, default sqlite3 but can be upgrade
  5. No cron sadly but can be upgrade
  6. No automatic reloads unless behavior of default runservers
  7. Deploy
  8. more fixes

About

Mythos - Compiler project for Automata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published