Skip to content

Basic todo backend powered by gorilla/mux 🦍

License

Notifications You must be signed in to change notification settings

utilyre/todolist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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