An open API service indexing awesome lists of open source software.

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/

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
```
![Alt text](docs/img_4.png)

### Minikube
Start minikube with `minikube start`

![Alt text](docs/img_3.png)

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)