This is a simple blog application, focused on studying development strategies using microservices.
- Post service;
- Comments service;
- Message broker (Event-Bus);
- Moderation Service;
- Query service;
- Sync events when query service is restarted;
- Web Client;
- Containerize application (Docker);
Before you begin, make sure you've met the following requirements:
To run the application, follow these steps:
Download the project and install the dependencies:
# Clone this repo
git clone https://github.com/Chriszao/mini-blog-micro-services.git
# Enter the project folder
cd mini-blog-micro-services
# Install deps P.S: You can use the package manager of your choice.
# but this project were developed with npm, and works better with it
npm install
# Inside each service have a βstartβ script that does start the service server
npm run start # <inside of service>
# Inside client folder to start the client server
npm run dev
You can start all the services servers and use the web client to create posts, and comments. If you put down the query service, and create posts or comments, the event bus will store the events to when the query service come up again, it will automatically sync the events.
- Typescript;
- NodeJs;
- Axios;
- Express;
Developed with π by Chriszao