Skip to content

pedrocmart/crud-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crud-go

A simple CRUD Golang API with MySQL & Docker

  • Install

    • Go
    • Docker
    • docker-compose
  • Usage:

    cd $GOPATH/src

    git clone https://github.com/pedrocmart/crud-go

    cd crud-go

    docker-compose up

Set up test database

    docker exec -it crud_go_db bash -l

    mysql -u root -p

Api endpoint inside the container:

  • localhost:5000/user

Api endpoint out of container:

    cd $GOPATH/src/crud-go
    
    go run main.go -p 8080
  • localhost:8080/user

-Usage + Demo:

DEMO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published