Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/watchakorn-18k/go-fiber-swagger
Go fiber swagger ui
https://github.com/watchakorn-18k/go-fiber-swagger
fiber golang swagger-ui
Last synced: 2 days ago
JSON representation
Go fiber swagger ui
- Host: GitHub
- URL: https://github.com/watchakorn-18k/go-fiber-swagger
- Owner: watchakorn-18k
- Created: 2024-06-09T09:25:44.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-06-20T02:38:43.000Z (5 months ago)
- Last Synced: 2024-06-20T14:53:22.961Z (5 months ago)
- Topics: fiber, golang, swagger-ui
- Language: Go
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# go-fiber-swagger
![img](docs/image.png)
## Install golang package
```bash
go mod tidy
```# Set Environment `.env`
```
DATABASE_NAME=
MONGODB_URI=
PORT=1818JWT_SECRET_KEY=Test
JWT_REFESH_SECRET_KEY=Test
```# Start APP
```sh
go run . || go run main.go
```
- go to (localhost:1818/api/users/docs)## Air
```sh
go install github.com/cosmtrek/air@latest
``````sh
air
```# Podman
```
podman build -t fiber-test .
``````
podman run --rm -it -p 3000:3000 fiber-test
```# Swagger
- can edit in [docs/swagger.json](docs/swagger.json)