Skip to content

Latest commit

 

History

History

tasks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ICT - Tasks API

This is the tasks backend for our Todo app. It's a simple Fiber API which has one resource: Tasks.

If nothing else is configured, it just stores the tasks in-memory. This means, the tasks are gone, when the server is restarted.

You can set the environment variable MONGODB_URI to define the URI for a MongoDB connection. If set, tasks are persistently stored in MongoDB and not in-memory.

Build

go build main.go

Development

go install github.com/mitranim/gow@latest
gow -c -e=go,mod,sum,env,toml run main.go

Probes

There are two probes available: See Fiber's health check documentation for more details.

  • /livez
  • /readyz