Comments (2)
Hi @avivace, now it seems pretty clear to me. Thanks a lot!
from backend.
Hey @simone-fontana , that's great!
CoderBot runs Blockly on the frontend and then sends the converted Python code to the backend.
The backend exposes a RESTFul API (OpenAPI schema is in backend/v2.yaml) on the /v2
endpoint. For future reference, you can see the API documentation at /v2/ui/index.html
(check the backend README).
To execute arbitrary code, you can simply POST to /exec/, putting your program payload in the body.
Inspect the network requests (browser developer tools), looking for the /exec/ call, to understand what's happening when you click "RUN" on the UI and prepare POST requests similar to the ones normally sent by the UI.
Let me know if this is clear for you and keep us updated on your high school lessons!
from backend.
Related Issues (20)
- The webcam view retains "print" commands from previous executions HOT 1
- I2C >> sudo echo "dtparam=i2c_arm=on" > /boot/config.txt
- connexion error HOT 4
- CoderBot SDcard Image HOT 1
- sleep block not working
- zbar lib no more working with python3 HOT 1
- find_text (Tesseract via OpenCV) is broken (again) HOT 1
- several opencv functions broken
- The default password must be changed on the first access HOT 2
- Unable to install requirements via pip3 install -r requirements_stub.txt HOT 3
- Unable to access web application page HOT 13
- Include program purpose/brief documentation in (example) programs HOT 1
- Unable to change default view when configuring an activity HOT 1
- Newly created activity is not selectable HOT 2
- backend v4 incompatible with (old) v5 hardware
- Fix tooltips on "vision" blocks HOT 2
- Add CONTRIBUTING document HOT 6
- video auto recording not supported by api v2
- remove "old" apis and UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backend.