Launchr Web plugin is an extenstion to Launchr to run actions via Web UI. The plugin consists of a Backend API and a Frontend client.
Build launchr
from source locally. Build dependencies:
go >=1.21
, see installation guidenodejs 20
, see NVM or Voltamake
Build the launchr
tool:
make
bin/launchr web --help
The documentation for launchr
usage can be found in the main project.
@todo update readme
cd client
# Install yarn 4 https://yarnpkg.com/getting-started/install yarn set version stable
# Fetch dependencies
yarn
# Build the project
yarn build
# Start client dev server
yarn dev
make front-install front-build
See client readme for more information.
To run Launchr Web server:
# Run web server on http://localhost:8080
bin/launchr web
# Run web server on http://localhost:3000
bin/launchr web -p 3000
# Serve swagger-ui and swagger.json
# Paths /api/swagger.json and /api/swagger-ui
bin/launchr web --swagger-ui
# To proxy requests to client dev server
bin/launchr web --swagger-ui --proxy-client=http://localhost:5173/
By default, Launchr HTTP server provides client files from client/dist
.
But as shown above, launchr may be a reverse proxy server for yarn dev
with --proxy-client
flag.
If you face any issues with launchr
:
- Open an issue in the repo.
- Share the app version with
launchr --version
The launchr
can be built with a make
to bin
directory:
make
It is also supported to make a build to use with dlv
for debug:
make DEBUG=1
Useful make commands:
- Fetch dependencies -
make deps
- Test the code -
make test
- Lint the code -
make lint
@todo review
make front-install front-build
make EMBED=1
git tag v0.0.X
git push --tags
and wait for github action will finished.