Visual Circuit+ is an open source tool to use RoboticsAcademy alongwith Visual Circuit. We start a Docker image of Robotics Academy and connect to it with our Visual Circuit instance. This is done in order to able to use Circuits directly from the web-editor and run them with RoboticsAcademy exercises.
For more information visit our site VisualCircuit
For more specific instructions check the frontend readme
- Clone the repository https://github.com/JdeRobot/VisualCircuit.git
- Change directory to
frontend
- Run
npm install
For more specific instructions check the backend readme
- Clone the repository https://github.com/JdeRobot/VisualCircuit.git
- Change directory to
backend
- Create a Python3 virtual environment using venv.
For eg.
python -m venv .venv
- After activating the virtual environment, install the dependencies by running
pip install -r requirements.txt
- Add
.env
file to thebackend
folder. And add the variables as defined in .env.template - Create the static files to serve during execution by
python manage.py collectstatic
- Navigate to VC+:
cd VC+
- Activate the environment:
source env/bin/activate
- Install required packages
pip install django
pip install djangorestframework
pip install django-webpack-loader
- Install dependencies for REACT (with Yarn or npm, required Node.JS >= 14.16)
cd react_frontend/ && yarn install
- Navigate to the frontend directory:
cd frontend
- Start the frontend server:
npm start
- Navigate to the backend directory:
cd backend
- Start the backend server:
python3 manage.py runserver 8080
- Navigate to VC+:
cd VC+
- Navigate to the react_frontend directory:
cd react_frontend
- Run the development server:
yarn run dev
- Open another terminal.
- Navigate to VC+:
cd VC+
- Activate the environment:
source env/bin/activate
- Start another instance of the backend server:
python3 manage.py runserver
sudo docker run --rm -it --name radi -p 2303:2303 -p 1905:1905 -p 8765:8765 -p 6080:6080 -p 1108:1108 -p 7163:7163 jderobot/robotics-academy:3.4.5 --no-server