onlydustxyz / starklings

An interactive tutorial to get you up and running with Starknet
309 stars 83 forks source link

Deploy exercise verifier as a Flask API #206

Closed Bernardstanislas closed 2 years ago

Bernardstanislas commented 2 years ago

The idea of this issue is to prepare the work of creating a web version of Starklings.

A first step for that would be to have a simple Flask backend that will expose one route POST /exercise/check?path={exercise_path} that returns the errors of the exercise file given as the request body.

This would be used by a frontend exposing a code editor to the user, and calling this API to get a correction on the exercise.

sxxnx commented 2 years ago

🗒️ Information about the data needed for front end : (types are for ref. it can be easily handled with JS if needed)