This is the source code of https://apidemo.lockval.com
You can download and edit client.yaml and public/server/...
to generate your own server
or run locally:
Build a vscode Dev Container environment (not recommended)
Build a Linux development environment (not recommended)
in vscode TERMINAL:
./serverStart.sh
-
JS
npm run serverJsBuildAndUpload
-
Lua
npm run serverLuaBuildAndUpload
-
Starlark (Starlark is a dialect of Python)
npm run serverStarBuildAndUpload
-
Go
npm run serverGoBuildAndUpload
in vscode TERMINAL:
WARNING, this run mode exposes the code and configuration of your service
WARNING, this run mode exposes the code and configuration of your service
WARNING, this run mode exposes the code and configuration of your service
npm run clientPublicSourceCode
Click "Open in Browser" to open website
OR
If you don't want to expose the service's code and configuration, use this command:
npm run clientPrivate
- public/client/paclient.ts (core code)
- public/client/player.ts (User Event and Module Data Definition Code, Generated by client.yaml)
You can learn how to develop a login(Service AuthN) and a guest(3rd Platform AuthN) here
(If you just want to preview locally, you can ignore this configuration)
export lockvalUpdatefileDomain=127.0.0.1:8080
export lockvalUpdatefilePassword=123456
export lockvalGwAddrs=http://127.0.0.1:59501,http://127.0.0.1:59502