joao-fontenele / simple-go-api

simple rest api using standard go library. Used for studying

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card

Simple go http rest api

Requirements

  • golang v1.11
  • notify-tools: for inotifywait

How to run

  • add project directory to GOPATH: export GOPATH=$GOPATH:$PWD
  • ./reload.sh ./server # nodemon like server
  • go install server # builds server binaries on ./bin folder

Use the server

  • curl -X POST localhost:8080/hello -d '{"name": "JP"}'

About

simple rest api using standard go library. Used for studying

License:MIT License


Languages

Language:Go 87.8%Language:Shell 12.2%