This is an unofficial cambridge dictionary API server implemented with Golang and also provide telegram bot feature with gitlab CI/CD pipeline on kubernetes.
git clone https://github.com/BWbwchen/Go_Cambridge_dictionary_API.git
cd Go_Cambridge_dictionary_API/
go run .
curl http://localhost:8080/api/dictionary
GET localhost:8080/api/<word you what to search>
POST localhost:8080/api/tg
- Make sure your gitlab-runner is docker executor.
- Make sure your kubernetes cluster have a deployment workload named
telegram-bot
- Fill some necessary information in
.gitlab-ci.yml
andtelegram.go
- Run on gitlab 😂 and set the environment variable
KUBERNETES_KUBE_CONFIG
in gitlab with your base64-encoded ~/.kube/config
- Input filter
- Word pronunciation