sudo apt update && sudo apt upgrade -ysudo apt install python3 python3-venv python3-pip git -ymkdir my_project && cd my_projectpython3 -m venv .venv. .venv/bin/activategit clone https://github.com/agodbole/BinaryBrains.git
cd BinaryBrainsgit initpip install -r requirements.txtTo keep the application running in the background:
nohup flask run & micro main.pyPress Ctrl + Q to exit.
Open a browser and enter:
http://External.IP.Of.VM:8080/login
- Create a new branch from the master branch.
- Edit the code in the branch.
- Commit the changes to the branch.
- Upload changes to the VM using:
git pull origin <branch>
- Refresh the web page to see the updates.
If changes are made to models.py and you need to restart the application:
ps -ux
kill -9 <processID>rm -rf instancegit pull origin <branch>
nohup flask run & micro main.py- The database is currently local to each VM instance.
- Each user running the code will have an independent database.
- To use a shared database, configure a remote SQL instance and update the application settings accordingly.
- For simplicity and cost efficiency, the local SQLite database instance works fine for demos and testing.