appengine

module
v0.0.0-...-e2d7340 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0, BSD-3-Clause

README

CEL REPL Web

Provides a simple web interface for working with the CEL REPL.

The two main components are 1) a Go application that implements a service wrapping the REPL and serving static web content 2) an angular based web page that provides an interface around the API.

The REPL service is stateless -- it initializes a new REPL instance and applies the requested commands in order on each request.

Development

Node.js and Go (>=1.18) are required to run the application.

To run the application in development mode, run the npm watch script and run the Go server as follows:

# from the `repl/appengine/web` directory:
npm run watch

# from the repl/appengine directory:
go run ./main --serve_static ./web/dist/web

Deploy on google cloud appengine

  1. Build the angular application with npm run build.

  2. Follow the instructions here: (https://cloud.google.com/appengine/docs/standard/go/building-app). Make sure to follow the instructions for setting up your gcloud cli, and the appengine support in cloud console for your project.

Directories

Path Synopsis
Package app provides a simple JSON API for using the REPL in a web application.
Package app provides a simple JSON API for using the REPL in a web application.
package main provides an entry point for the REPL web server.
package main provides an entry point for the REPL web server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL