Secret sauce that brings YouTube followers, views, likes
Get Free YouTube Subscribers, Views and Likes

Microservice Nodejs Reactjs Part1 | Create Reactjs App and Communicate Multiple Nodejs Service

Follow
Technophile - Firdous

Github Link : https://github.com/firdousalam/FullS...
Documents : Service Structure : https://github.com/firdousalam/FullS...

Complete initial Setup
Step 1 : create react app using
npx createreactapp client
step 2 : Setup Nodejs Posts Service
a. mkdir posts
b. cd posts
c. npm init y
d. npm install express cors axios nodemon

step 3 : Setup Nodejs Comments Service
a. mkdir Comments
b. cd Comments
c. npm init y
d. npm install express cors axios nodemon

as per above
for post service we need two URL one to save post and one to retrieve post

Let’s Create the following Path In our Posts Service

Go to Posts Service
create One File (Index.js) and initial Express code
GoTo package.json file
script : nodemon index.js

Let Us Implement Comments Service

so here we will try to add comments based on postId i.e one post may contain multiple comments

posted by nosofobiavh