Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,21 @@ JVisualBook assumes a trusted local user:
- Submitted snippets are real Java code evaluated by JShell.
- Snippets can consume arbitrary CPU and memory up to the 5-second execution timeout.
- Snippets may access files, environment variables, and network resources available to the Java process.
- The app must not be deployed as a shared or public-facing service.
- The app must not be deployed as a shared or public-facing service.


## Build

You can build your notebook by using the following Maven command:

```shell
mvn clean package
```

It builds a JAR file with the name `jvisualbook-<version>.jar` in the `target` directory, where `version` is the version of your Maven project.

Then you can run `java -jar target/jvisualbook-<version>.jar` to start the web UI, and connect to it at the following default URL: `http://localhost:8080`.

If you are running the application from an IDE, you can directly execute the `target/jvisualbook-<version>.jar` file from your IDE.

In both cases, the application will look for any `.jsh` file at the root of the project, and will open the first one it finds. By defaut it opens the `readme.jsh` file.
4 changes: 2 additions & 2 deletions web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"eslint-plugin-react-hooks": "^7.1.1"
},
"scripts": {
"copy-monaco": "mkdir -p public && rm -rf public/vs && cp -r node_modules/monaco-editor/min/vs public",
"copy-monaco": "mkdir public && rm -rf public/vs && cp -r node_modules/monaco-editor/min/vs public",
"prebuild": "npm run copy-monaco",
"build": "vite build",
"clean": "rm -rf dist",
"clean": "rm -rf dist public",
"lint": "eslint src"
}
}
Loading