Giter VIP home page Giter VIP logo

automata-mythos's Introduction

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

automata-mythos's People

Contributors

kiel-hyre avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.