This is the source code of the demo application that I made for a blog post. It's essentially an intro to Fiber, an Express-like web framework written in Go.
- Go
- MongoDB with a database called
todos
git clone [email protected]:jozsefsallai/fiber-todo-demo.git
cd fiber-todo-demo
go mod tidy
go run server.go
go build . -o todoapi
./todoapi
Use the MONGODB_CONNECTION_STRING
environment variable to specify a custom MongoDB connection string:
MONGODB_CONNECTION_STRING=mongodb://user:pass@host:27017 go run .
MIT.