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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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