-
Clone the repository and into to directory.
git clone [email protected]:jonyig/devmentor-BE103-golang.git && cd devmentor-BE103-golang
-
Start the container.
docker-compose up -d
-
Check API document
localhost:8000
Please run migration up after container mysql is set
migration-up
migration-down
curl --location '127.0.0.1:8080/posts'
curl --location '127.0.0.1:8080/posts' \
--header 'Content-Type: application/json' \
--data '{
"title":"12344rr",
"content" : "1333"
}'