https://github.com/beemi/lat-long-service
Get Postcode details using https://expressjs.com/
https://github.com/beemi/lat-long-service
docker kubernetes kubernetes-cluster kubernetes-deployment nodejs
Last synced: about 1 month ago
JSON representation
Get Postcode details using https://expressjs.com/
- Host: GitHub
- URL: https://github.com/beemi/lat-long-service
- Owner: beemi
- License: mit
- Created: 2022-01-25T14:47:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T05:04:12.000Z (over 3 years ago)
- Last Synced: 2025-08-03T23:20:24.888Z (10 months ago)
- Topics: docker, kubernetes, kubernetes-cluster, kubernetes-deployment, nodejs
- Language: TypeScript
- Homepage: http://jaitechltd.com/
- Size: 672 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lat-long-service
Get Postcode details using https://expressjs.com/
# setup
```shell
npm install --save-dev babel-cli babel-preset-env jest supertest superagent
```
## routes
Get longitude and latitude from postcode
```shell
curl -X GET http://localhost:7000?postcode=SW1A 1AA
```
```shell
curl -X GET http://localhost:3000/postcode/SW1A 1AA
```
# tests
```shell
npm test
```
# Building your image
```shell
docker build -t lat-long-service .
```
## Your image will now be listed by Docker:
```shell
docker images
```
### Run the image
```shell
docker run -p 3000:3000 lat-long-service
```
## Kubernetes
Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io/
```shell
brew install k9s
```
```shell
k9s -n default
```

### Minikube
Start minikube with `minikube start`

Check the status of minikube with `minikube status`
Check the logs of minikube with `minikube logs`
Check the dashboard of minikube with `minikube dashboard`
```shell
kubectl apply -f kube
```
watch your Pods coming alive with:
```shell
kubectl get pods --watch
```
Get pods from the cluster with:
```shell
kubectl get pods
```
Delete kubernetes resources with:
```shell
kubectl delete -f kube
```
## :e-mail: Contacts
Owner: [beemiraja@gmail.com](beemiraja@gmail.com)