echo-sample

command module
v0.0.0-...-99ceac5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2019 License: MIT Imports: 3 Imported by: 0

README

echo-sample

This is an sample of todo app.

Feature

  • Implemented in the Go language.
  • Using labstack/echo as Web API Framework.
  • Architecture adopts CleanArchitecture.

Run

Run command
docker-compose up -d
go run *go
Startup confirmation

Access to localhost:1323/ after above execution.
Then you will see Hello world! in your browser.

Exapmple
curl localhost:1323/todos
curl localhost:1323/todos/1
curl -i -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"ID": 4, "Title": "todo4","Content": "sample-todo","Status": "0"}' localhost:1323/todos

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
infrastructures
api
interfaces

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL