Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lenra-io/template-go
Go language template to start your Lenra app
https://github.com/lenra-io/template-go
app cloud-computing data-management golang ui
Last synced: about 2 months ago
JSON representation
Go language template to start your Lenra app
- Host: GitHub
- URL: https://github.com/lenra-io/template-go
- Owner: lenra-io
- License: mit
- Created: 2022-10-03T12:52:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T11:16:03.000Z (about 2 years ago)
- Last Synced: 2023-03-06T04:00:09.137Z (almost 2 years ago)
- Topics: app, cloud-computing, data-management, golang, ui
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# template-go
[Go](https://github.com/golang/go) template to start your Lenra app.## Get Started !
### Requirements*
- [x] docker
- [x] docker-compose
- [ ] buildkit
- [x] lenra_cli_*Unchecked value is optional_
### How to install `lenra_cli`
You need to install the Lenra CLI to start the devtools that will show your app.
To download it, you can use cargo or download the binary via the [latest github release assets](https://github.com/lenra-io/lenra_cli/releases)
From cargo you need to run the following command :
```bash
cargo install lenra_cli --version=1.0.0-beta.5
# or `cargo install [email protected]`
```When installed you can run the binary file
```bash
lenra --version
```### Building and debugging your app
To build your app, you can run the `lenra build` command that will build the docker container
```bash
lenra build
```The `lenra start` command will start all needed services to make your app ready and then open your browser so you can start debugging.
```bash
lenra start
```When everything is fine, you can stop your app by running the `lenra stop` command. That will interrupt all current running services about your app. And delete all data from your app to be able to keep your test clean.
```bash
lenra stop
```