8000 GitHub - vpython/flaskHost at 022912c1c020b6973047704e2676f6c307ec51ed
[go: up one dir, main page]

Skip to content

This is a flask based host application using Google Datastore for program persistence. This very nearly the same as the current application implementing www.glowscript.org.

Notifications You must be signed in to change notification settings

vpython/flaskHost

Repository files navigation

Flask Datastore Host

This is a flask based Google DataStore Host. This is very nearly the same code that runs www.glowscript.org at the moment.

The idea is to first get this working with the old auth/Datastore modules but configuring different guest runners.

Then we'll factor out editing/storage to be more modular.

You can run this host app, and the two guest apps in code spaces.

  • type docker compose up in a terminal window
  • Note the URL of the app.
  • Edit the .env file of the WASM guest to match this URL
  • Edit the untrusted/run.html file of the RS guest to match this URL
  • Launch the rapydscript guest, and the WASM guest in separate code spaces
  • Note the URL of each of these apps
  • In the .flaskenv file, set PUBLIC_RUNNER_GUEST_URL and PUBLIC_WASM_GUEST_URL

Sprint One - LoadURL Branch

Accomplished - Made pages.load in ide.js which can load code from a URL by using the following route "/user/([^/]+)/folder/([^/]+)/program/([^/]+)/loadURL/(.+)$". This route can also be found in the router().

Status - The program can currently take a URL and run code from the URL.

Next Step - Take code from Google Drive and run it. Start by making a new route in router() for loading code from Google Drive. Make code that you load from Google Drive or using loadURL go into either the database or Google Drive.

Next Next Step - Be able to save, edit, and run code that you load from Google Drive and loadURL

About

This is a flask based host application using Google Datastore for program persistence. This very nearly the same as the current application implementing www.glowscript.org.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

0