create new task (id (int), alias (string), description (string), type (set of string: [urgent, important, general]), tags (set of srting: [personal, work, vacation]), timestamp (int), estimate-time (string), real-time (string), reminders (set of strings: ["3h", "15m"]))
#create DB file for SQLite
touch sqltest.db
#build your solution
GOOS=linux go build -o app app.go
Build & launch docker:
docker build -t testdms:latest .
docker images #find your image hash
docker run --rm -it -v sqlite.db:/app/sqlite.db <image-hash>
Test request with data:
curl -X POST -H 'Content-Type: application/json' -d '{"alias":"go-dms-workshop","desc":"Create app and try it with different DMS", "type":"important", "ts":1473837996,"tags":["Golang","Workshop","DMS"],"etime":"4h","rtime":"8h","reminders":["3h", "15m"]}' http://127.0.0.1:8080