todolist

command module
v0.0.0-...-1e2a79c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

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
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳