Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gofiber/boilerplate
🚧 Boilerplate for 🚀 Fiber
https://github.com/gofiber/boilerplate
boilerplate fiber
Last synced: 3 days ago
JSON representation
🚧 Boilerplate for 🚀 Fiber
- Host: GitHub
- URL: https://github.com/gofiber/boilerplate
- Owner: gofiber
- License: mit
- Created: 2020-04-04T11:03:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-05T21:20:09.000Z (4 months ago)
- Last Synced: 2024-08-04T01:06:44.815Z (3 months ago)
- Topics: boilerplate, fiber
- Language: Go
- Homepage: https://github.com/gofiber/fiber
- Size: 674 KB
- Stars: 398
- Watchers: 10
- Forks: 68
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fiber - gofiber/boilerplate - Official fiber boilerplate. (🚧 Boilerplates / 🌱 Third Party)
README
# GoFiber Docker Boilerplate
![Release](https://img.shields.io/github/release/gofiber/boilerplate.svg)
[![Discord](https://img.shields.io/badge/discord-join%20channel-7289DA)](https://gofiber.io/discord)
![Test](https://github.com/gofiber/boilerplate/workflows/Test/badge.svg)
![Security](https://github.com/gofiber/boilerplate/workflows/Security/badge.svg)
![Linter](https://github.com/gofiber/boilerplate/workflows/Linter/badge.svg)## IDE Development
### Visual Studio Code
Use the following plugins, in this boilerplate project:
- Name: Go
- ID: golang.go
- Description: Rich Go language support for Visual Studio Code
- Version: 0.29.0
- Editor: Go Team at Google
- Link to Marketplace to VS: https://marketplace.visualstudio.com/items?itemName=golang.Go## Development
### Start the application
```bash
go run app.go
```### Use local container
```
# Shows all commands
make help# Clean packages
make clean-packages# Generate go.mod & go.sum files
make requirements# Generate docker image
make build# Generate docker image with no cache
make build-no-cache# Run the projec in a local container
make up# Run local container in background
make up-silent# Run local container in background with prefork
make up-silent-prefork# Stop container
make stop# Start container
make start
```## Production
```bash
docker build -t gofiber .
docker run -d -p 3000:3000 gofiber ./app -prod
```Go to http://localhost:3000:
![Go Fiber Docker Boilerplate](./go_fiber_boilerplate.gif)