
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
github.com/raymasson/go-mongodb-minikube-kubectl-helm
An example project demonstrating the deployment of a mongodb replica set and a Golang API in Kubernetes. Minikube is used to run k8s locally. kubectl is used to deploy the mongodb replica set. helm is used to deploy the golang API.
Follow the mongodb readme
Follow the api readme
First of all, let's get the API service URL out of minikube.
$ minikube service person-api --url
Use the outputted URL in your internet browser (e.g.: http://192.168.99.100:31518
). You should see Welcome to the person API!
displayed
Get persons out of the person API. The expected output is a HTTP status 200 OK
and a []
of persons.
$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://192.168.99.100:31518/persons
Now, let's insert our first person. The expected output is a HTTP status 201 Created
.
$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" -d '{"first_name":"ray", "last_name":"masson"}' -X POST http://192.168.99.100:31518/persons
Run again the first curl
command. The output should now be something like [{"id":"5ab505c424e8f10001f047b5","first_name":"ray","last_name":"masson"}]
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.