https://github.com/fumeapp/fiber
Fiber adapter for Fume
https://github.com/fumeapp/fiber
Last synced: 9 months ago
JSON representation
Fiber adapter for Fume
- Host: GitHub
- URL: https://github.com/fumeapp/fiber
- Owner: fumeapp
- License: apache-2.0
- Created: 2022-09-20T23:04:15.000Z (about 3 years ago)
- Default Branch: production
- Last Pushed: 2023-09-27T04:17:15.000Z (about 2 years ago)
- Last Synced: 2025-01-14T03:17:05.891Z (11 months ago)
- Language: Go
- Size: 269 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Fume adapter for Fiber
[![Go Reference][1]][2]
[![GoCard][3]][4]
[1]: https://pkg.go.dev/badge/github.com/fumeapp/fiber.svg
[2]: https://pkg.go.dev/github.com/fumeapp/fiber
[3]: https://goreportcard.com/badge/github.com/fumeapp/fiber
[4]: https://goreportcard.com/report/github.com/fumeapp/fiber
This is a simple adapter for [Fiber](https://gofiber.io/) that allows you to deploy your application using Fume.
```go
package main
import (
fume "github.com/fumeapp/fiber"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
app.GET("/", func(c *fiber.Ctx) { c.Status(200).JSON(&fiber.Map{"message": "Hello World"}) })
fume.Start(app, fume.Options{})
}
```
## Options
| Option | Description | Default |
| ------ | ----------- | ------- |
| `Port` | Port to listen on | `8000` |
| `Host` | Host to listen on | `localhost` |