Mythos is a compiler created by ArrayIndexOutOfBoundsException. A project for the course Automata of CS in PLM
- Virtual Environment
- Use virtualenv to add a virtual environment
virtualenv venv
- Activate the environment
source venv/bin/activate #Ubuntu
- Deactivate enviroment
deactivate
- Remove environment
rm -rf venv
Check this info for windows
- Install requirements for python3
- (Optional) Upgrade Tools
pip3 install --upgrade setuptools #pip only for Windows
- (Optional) Upgrade Pip
python3 -m pip install --upgrade pip #python only for Windows unless there is other version
- Install requirements in requirements.txt
pip3 install -r requirements.txt
- Environment Variables
- In source folder aligned with manage.py create .env file
automata-mythos\
... # other files
.env
manage.py
- Create variables inside env file
- For development, copy the variables inside the development.env to .env
- For production, copy the variables inside the production.env to .env
- Vue init
- yarn the project
yarn
- yarn build
yarn build
- Common Commands for Django
- Makemigrations
python3 manage.py makemigrations
- Migrate Applications
python3 manage.py migrate
- More django commands info
- Common Commands for Vue
- Project setup
yarn install
- Compiles and minifies for production
yarn build
- Compiles and hot-reloads for development
yarn serve
- Run server for Django
python3 manage.py runserver (port) # default is 8000
- Run server for Vue
yarn serve
- Sadly this is two way, so need to run both server seperately
- In future, maybe use different containers
Need to seperate production and development key env- No other db installed, default sqlite3 but can be upgrade
- No cron sadly but can be upgrade
- No automatic reloads unless behavior of default runservers
- Deploy
- more fixes