Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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=1818

JWT_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)