Skip to content

Groovy Web Console, an online web code editor to write and execute programs written with the Apache Groovy programming language

License

Notifications You must be signed in to change notification settings

groovy-console/groovy-web-console

Repository files navigation

Groovy Web Console

Backend

Building the backend

Go to functions/function-executor and type mvnw package. The output will be in functions/function-executor/target/deployment.

There are different profiles, one for each groovy version:

  • groovy_4_0
  • groovy_3_0 (default)
  • groovy_2_5

Use mvn package -P groovy_2_5

Deploying the backend

Go to https://github.com/groovy-console/groovy-web-console/actions/workflows/deploy.yml and click on Run Workflow

Frontend

Building the frontend

You need to have Node 16 LTS installed.

  1. Navigate to services/frontend
  2. Install dependencies with npm ci
  3. Build the frontend with npm run build

The output will be in services/frontend/dist.

Running the frontend locally

Do the same steps as building the frontend but substitute the last command for:

  • npm run serve-remote to run the frontend with the remote backend
  • npm run serve-local to run the frontend with the local backend (start it with mvnw function:run)

Checking code style

You can check the code style with npm run lint and automatically fix most issues with npm run lint-fix.

Deploy App Engine web frontend

The web frontend consists only of static assets (HTML, JavaScript, and CSS). Go to https://github.com/groovy-console/groovy-web-console/actions/workflows/deploy-frontend.yml and click on Run Workflow.

Alternatively, to deploy it manually after building it, go to the services/frontend directory, and type: ./deploy.sh

About

Groovy Web Console, an online web code editor to write and execute programs written with the Apache Groovy programming language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published