Basic todo backend powered by gorilla/mux 🦍
-
Build a docker image
docker build -t todolist .
-
Run the docker image you just built
docker run -p 3000:80 todolist
-
Migrate the database
mkdir -p sqlite goose -dir migrations sqlite3 sqlite/todolist.db up
-
Create a
.env
file with the following contentDB_PATH=sqlite/todolist.db BE_HOST=0.0.0.0 BE_PORT=3000
-
Run the app in
dev
modeMODE=dev go run main.go