A Go Fiber web server with graceful exit, structured logging, environment variable configuration, and local development tooling.
The easiest way to deploy your Go Fiber server to AWS is to use the FlexStack Serverless Platform.
See Prerequisites for installing mise – an all-in-one tool for managing project dependencies, environment variables, and running tasks.
# Setup the project
mise run setup
# Start the development server
# By default: https://localhost:3000
mise run
- To see a list of development scripts, run
mise tasks
. - To run a script, run
mise run <script-name>
.
If you're using VS Code or Cursor as your editor, we recommend the following extensions:
- TOML Language Support Add TOML language support for the
mise
config. - Dprint Code Formatter Use
dprint
as the default formatter for the project. - Go Golang support for VS Code
We also recommend the following settings in your .vscode/settings.json
:
{
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true,
"[go]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[json]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[jsonc]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[yaml]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[toml]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[markdown]": {
"editor.defaultFormatter": "dprint.dprint"
},
"[dockerfile]": {
"editor.defaultFormatter": "dprint.dprint"
}
}
We use mise to run tasks, manage tool versions, and manage environment variables.
curl https://mise.run | sh
- Add mise to your shell profile. This activates mise in your shell, ensuring the correct tool versions are used for your environment.
# Zsh
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
echo 'eval "$(~/.local/bin/mise activate zsh --shims)"' >> ~/.zprofile
source ~/.zshrc
# Bash
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
echo 'eval "$(~/.local/bin/mise activate bash --shims)"' >> ~/.bash_profile
source ~/.bashrc
# Fish
echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish
fish_add_path ~/.local/share/
- Run
mise trust
to trust the project's.mise.toml
file.