Test Skill
Requirement
- GO
- Redis
- MySQL
- Rabbit MQ
- Elastic Search
How to Install and Running
- Import Table Schema, schema.sql
- Change Config in .env
- Running Producer
go run main.go producer
- Running Consumer
go run main.go consumer
Testing
- Send Data :
curl --header "Content-Type: application/json" \
--request POST \
--data '{"author":"didik prabowo","body":"didik prabowo belajar golang"}' \
http://localhost:9090/news
- Get Data
curl --request GET "localhost:9090/news"