Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 607 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 607 Bytes

Todo List

Basic todo backend powered by gorilla/mux 🦍

Production

  1. Build a docker image

    docker build -t todolist .
  2. Run the docker image you just built

    docker run -p 3000:80 todolist

Development

  1. Migrate the database

    mkdir -p sqlite
    goose -dir migrations sqlite3 sqlite/todolist.db up
  2. Create a .env file with the following content

    DB_PATH=sqlite/todolist.db
    
    BE_HOST=0.0.0.0
    BE_PORT=3000
  3. Run the app in dev mode

    MODE=dev go run main.go