Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Stephen Grider] Microservices with Node JS and React [ENG, 2020]

NotificationsYou must be signed in to change notification settings

webmakaka/Microservices-with-Node-JS-and-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build, deploy, and scale an E-Commerce app using Microservices built with Node, React, Docker and Kubernetes




How to run apps

I am working in ubuntu linux 18.04.

Minikube, Kubectl, Docker, Skaffold should be installed.


Skaffold installation

$ curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64$ chmod +x skaffold$ sudo mv skaffold /usr/local/bin

Run minikube

$ {minikube --profile my-profile config set memory 8192minikube --profile my-profile config set cpus 4// minikube --profile my-profile config set vm-driver virtualboxminikube --profile my-profile config set vm-driver dockerminikube --profile my-profile config set kubernetes-version v1.18.2minikube start --profile my-profile}

// Enable ingress$ minikube addons --profile my-profile enable ingress

$ minikube --profile my-profile ip172.17.0.2

$ sudo vi /etc/hosts
#---------------------------------------------------------------------# Minikube#---------------------------------------------------------------------172.17.0.2 posts.com172.17.0.2 ticketing.dev

How to run the final app1


$ 04_Orchestrating_Collections_of_Services_with_Kubernetes$ cd skaffold$ docker login

Need to update my docker image name webmakaka/grider-ms-app1*** to your in scripts from skaffold and k8s folders.

$ skaffold dev

$ kubectl get podsNAME                              READY   STATUS    RESTARTS   AGEclient-depl-99b7fcdcb-jhttp       1/1     Running   0          3m22scomments-depl-69578db79c-jzdnh    1/1     Running   0          3m22sevent-bus-depl-7c5b75b7f4-m5qw6   1/1     Running   0          3m22smoderation-depl-d7b49bfbc-cgl2l   1/1     Running   0          3m22sposts-depl-78647cffd4-7gtzx       1/1     Running   0          3m22squery-depl-656f9b6b58-bv7g7       1/1     Running   0          3m22s

browser --> posts.com


How to run the final app2


$ kubectl create secret generic jwt-secret --from-literal=JWT_KEY=asdf// <STRIPE_SECRET_KEY> from stripe.com$ kubectl create secret generic stripe-secret --from-literal=STRIPE_KEY=<STRIPE_SECRET_KEY>

$ cd 22_Back_to_the_Client$ cd skaffold$ docker login

Need to update my docker image name webmakaka/grider-ms-app2*** to your in scripts from skaffold and k8s folders.

$ skaffold dev

$ kubectl get podsNAME                                           READY   STATUS    RESTARTS   AGEauth-deployment-57d779fd9-48s9v                1/1     Running   0          24sauth-mongo-deployment-579c6dbd8f-69jbv         1/1     Running   0          23sclient-deployment-f5cfc5b8d-k2lxp              1/1     Running   0          23sexpiration-deployment-6bb67856b4-jkkbl         1/1     Running   0          23sexpiration-redis-deployment-5b58b869fd-hmq5f   1/1     Running   0          23snats-deployment-76479997ff-lpss8               1/1     Running   0          23sorders-deployment-5c68dff5c9-dq6hl             1/1     Running   0          23sorders-mongo-deployment-6896c8b9-42vpd         1/1     Running   0          23spayments-deployment-68d4c7f4ff-nfsxb           1/1     Running   0          23spayments-mongo-deployment-c89cb4fc7-4ggn7      1/1     Running   0          23stickets-deployment-7b746fff9-tvhzw             1/1     Running   0          23stickets-mongo-deployment-54f456bd95-hv9fb      1/1     Running   0          22s

chrome browser -->https://ticketing.dev/


type:thisisunsafe in the browser window with security warning.


Expected result:

Application


Delete minikube with project

$ minikube --profile my-profile stop && minikube --profile my-profile delete


Development step by step


App1

03. Running Services with Docker (Docker Basics. Nothing Interesting)


App2

06. Leveraging a Cloud Environment for Development (Optional Section, Skipped)




Marley

Any questions in english:Telegram Chat
Любые вопросы на русском:Телеграм чат

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp