Seenode Deployment Example
This project demonstrates how to deploy a Go application using the Fiber framework on Seenode.
Prerequisites
Ensure you have the following installed:
- Golang
- Fiber package
- Seenode account
Setup
-
Clone the repository:
git clone https://github.com/gofiber/recipes.gitcd recipes/seenode -
Install dependencies:
go mod tidy -
Create a Seenode account and connect your repository:
- Go to Seenode Dashboard
- Create a new Web Service
- Connect your Git repository
-
Configure deployment:
- Build Command:
go build -o app main.go - Start Command:
./app
- Build Command:
-
Deploy the application:
git add .git commit -m "Deploy to Seenode"git push
Running the Application
- Open the application in your browser using the provided Seenode URL.
Example
See ./main.go for the full application code. It exposes:
GET /— welcome messageGET /health— health check, returns{"status":"ok"}