go build && ./DiaryAPI
File Dockerfile, yang digunakan untuk dockerize app. Perintah: sudo docker build . -t go-dock
Pada folder postgresql-docker terdapat 2 file, docker-compose.yml dan backup untuk restore database. Perintah jalankan PostgreSQL: sudo docker-compose up
List rest api, base url: http://localhost:8789
- /api/user/signUp
- /api/user/login
- /api/diary/createNewDiary
- /diary/updateDiary
- /diary/getDiaryByYearAndQuarter/{year}/{quarter}
- /diary/getDiaryById/{id}
- /diary/getAllDiary
- /diary/deleteDiary/{id}
go test -run -v. Test pada file main_test