Skip to content

E-commerce application built using Node React and deployed with Docker and Kubernetes

License

Notifications You must be signed in to change notification settings

tripathyprateek/Microservices-Store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservices-Store

Fullstack ecommerce store with all necessary microservices. Using a Microservices approach to ecommerce application with React, NodeJs, Docker and Kubernetes.

To start each of the services, cd into that folder then do npm install and npm start.

Project Setup

$ npm install -g nodemon

$ cd service

$ npx create-react-app service

$ cd service

$ mkdir posts
$ cd posts
$ npm init -y

$ npm install --save express cors axios

$ cd service

$ mkdir comments
$ cd comments
$ npm init -y

$ npm install --save express cors axios

Same is followed for creation of Client,event-bus,posts and query.

Testing all Service using Postman


$ curl \
--request POST http://localhost:4000/posts/ \
--header "Content-Type: application/json" \
| python -m json.tool

$ curl \
--request GET http://localhost:4000/posts/ \
--header "Content-Type: application/json" \
| python -m json.tool

Docker Kubernetes and Skaffold Installation

Install Docker Desktop for your specific machine or Docker Daemon(for Linux Users).
Currently the application doesnt completely support Podman but looking to do that in near time.

For Kubernetes a Kubernetes single cluster can be enabled from Docker Desktop itself as it comes built in.
I am using Minikibe for this project.

Skaffold can be install by running this command in your terminal.

$ curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \
$ sudo install skaffold /usr/local/bin/

About

E-commerce application built using Node React and deployed with Docker and Kubernetes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published