Skip to content

jonyig/devmentor-BE103-golang

Repository files navigation

Installation && Setup

  1. Clone the repository and into to directory.

    git clone [email protected]:jonyig/devmentor-BE103-golang.git && cd devmentor-BE103-golang
    
  2. Start the container.

    docker-compose up -d 
  3. Check API document

    localhost:8000
    

Reference

DB Migrations

Up

Please run migration up after container mysql is set

migration-up

Down

migration-down

Example API

List Post

curl --location '127.0.0.1:8080/posts'

Create Post

curl --location '127.0.0.1:8080/posts' \
--header 'Content-Type: application/json' \
--data '{
    "title":"12344rr",
    "content" : "1333"
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published