Skip to content
 
 

Repository files navigation

NODE REST API

This is a simple REST API app

Docker hub URL for images

Node REST API - https://hub.docker.com/r/iamnsharma/node-rest-api

Mongo DB - https://hub.docker.com/_/mongo

Deployment steps

  1. Deploy namespace.yaml to create custom K8s namespace
  2. Deploy mongodb-deployment.yaml to deploy Database Service
  3. Deploy rest-api-deployment.yaml to deploy application

How to test

Use any REST Client like Postman or ThunderClient in VSCode to submit HTTP requests.

Endpoint - http://{hostName}:{port}/api/products

deployed version - http://34.93.154.57/api/products

Sample GET Request -

Alt text

Sample POST Request -

Alt text

About

This is a RESTful API example based on Node.js and MongoDB, following the MVC pattern i.e. Model View Controller.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages