A simple twitter clone using echo.
First, set values in .env.sample
Next, rename .env.sample to .env
cd ~/echo-twitter-clone
mv .env.sample .env
docker-compose up -d
go run server.go
Browse to http://localhost:1323 and you should see 'Hello, this is a Twitter clone!' on the page.
curl -X POST -d "message=sample message" http://localhost:1323/posts
curl -X GET http://localhost:1323/posts
curl -X GET http://localhost:1323/posts/1
curl -X PUT -d "message=update message" http://localhost:1323/posts/1
curl -X DELETE http://localhost:1323/posts/1