Skip to content

This is an unofficial cambridge dictionary api server implement with Golang and also provide telegram bot feature with gitlab CI/CD on kubernetes.

Notifications You must be signed in to change notification settings

BWbwchen/Go_Cambridge_dictionary_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Cambridge dictionary API

This is an unofficial cambridge dictionary API server implemented with Golang and also provide telegram bot feature with gitlab CI/CD pipeline on kubernetes.

Get started !

git clone https://github.com/BWbwchen/Go_Cambridge_dictionary_API.git
cd Go_Cambridge_dictionary_API/
go run .
curl http://localhost:8080/api/dictionary 

Dictionary API

GET localhost:8080/api/<word you what to search>

Telegram bot API

POST localhost:8080/api/tg

Combine with your gitlab CI/CD

  1. Make sure your gitlab-runner is docker executor.
  2. Make sure your kubernetes cluster have a deployment workload named telegram-bot
  3. Fill some necessary information in .gitlab-ci.yml and telegram.go
  4. Run on gitlab 😂 and set the environment variable KUBERNETES_KUBE_CONFIG in gitlab with your base64-encoded ~/.kube/config

TODO

  • Input filter
  • Word pronunciation

About

This is an unofficial cambridge dictionary api server implement with Golang and also provide telegram bot feature with gitlab CI/CD on kubernetes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published