go build
./todo-go
Can work with MySQL or SQLite ( default )
- following is the config for MySQL:
db:
type: mysql
user: root
password: 1
host: localhost
database: todos
(you need to create the database (code will init all necessary tables on its own))
- following is the config for SQLite:
db:
type: sqlite
path: db.sqlite