ajout app

This commit is contained in:
2024-04-17 20:22:30 +02:00
parent cc017cfc5e
commit f9d05a2fd3
8025 changed files with 729805 additions and 0 deletions

55
Voltaserve/api/README.md Normal file
View File

@ -0,0 +1,55 @@
# Voltaserve API
## Getting Started
Install [swag](https://github.com/swaggo/swag) and [golangci-lint](https://golangci-lint.run/usage/install).
Run for development:
```shell
go run .
```
Build binary:
```shell
go build .
```
Build Docker image:
```shell
docker build -t voltaserve/api .
```
Run code linter:
```shell
golangci-lint run
```
## Generate and Publish Documentation
Format swag comments:
```shell
swag fmt
```
Generate `swagger.yml`:
```shell
swag init --output ./docs --outputTypes yaml
```
Preview (will be served at [http://127.0.0.1:5555](http://127.0.0.1:5555)):
```shell
npx @redocly/cli preview-docs --port 5555 ./docs/swagger.yaml
```
Generate the final static HTML documentation:
```shell
npx @redocly/cli build-docs ./docs/swagger.yaml --output ./docs/index.html
```