groovy-console / groovy-web-console

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

Home Page:https://groovyconsole.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://groovyconsole.dev/

License:Apache License 2.0


Languages

Language:Java 37.4%Language:TypeScript 36.4%Language:HTML 11.1%Language:Groovy 8.9%Language:JavaScript 5.6%Language:SCSS 0.5%Language:CSS 0.0%Language:Shell 0.0%