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
.
$ 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.
$ 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
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/