Coder Social home page Coder Social logo

nodejs-blog-microservice's Introduction

Nodejs Blog Using Microservices

In this simple example, we are going to design a simple blog system using the microservice architecture. There are only two entitties called posts and comments. This project is not a template for a real-world project.

  1. Create a react project:
$> npx create-react-app client
$> cd client
$> npm install axios
$> npm start
  1. Create a directory for ==posts== and initialize it
$> mkdir posts
$> cd posts
$> npm init -y
$> npm install express cors axios nodemon
  1. Create a directory for ==comments== and initialize it
$> mkdir comments
$> cd comments
$> npm init -y
$> npm install express cors axios nodemon
  1. Create a directory for ==event-bus== and initialize it
$> mkdir event-bus
$> cd event-bus
$> npm init -y
$> npm install express nodemon axios
  1. Create a directoy for ==query== service and initialize it:
$> mkdir query
$> cd query
$> npm init -y
$> npm install express cors nodemon axios
  1. Create a directory for ==moderation== service and initialize it:
$> mkdir moderation
$> cd moderation
$> npm init -y
$> npm i axios express nodemon

nodejs-blog-microservice's People

Contributors

raminux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.