Skip to content

marosiak/fiber-boilerplate-plus

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Boilerplate

First of all, you will probably need to cut this header Boilerplate header part

Then you can find & replace these names:

project_module
project-name

Development

Start the application

Basic

go run cmd/main.go

Live reload with Air

go install github.com/cosmtrek/air@latest
air

Alternatively:

make air

For Windows you will need to use different configuration:

air -c windows.air.toml

You may need to add $GOPATH/bin to your $PATH

Use local container

# 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

# Stop container
make stop

# Start container
make start

Production

docker build -t gofiber .
docker run -d -p 8000:8000 gofiber

Go to http://localhost:8000:

Go Fiber Docker Boilerplate

About

๐Ÿšง Boilerplate for ๐Ÿš€ Fiber

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 62.5%
  • HTML 15.2%
  • CSS 8.1%
  • Dockerfile 7.4%
  • Makefile 6.8%