[TOC]Build a full-stack simple blog application

System Design - Full stack Blog (simple blog) (Microservices Architecture) 1. Overview Project Goal Technology Stack Frontend: React Backend: Express (Node.js) Database: MySQL Containerization: Docker Deployment: AWS (ECS or EC2) API Management: AWS API Gateway 2. Architecture Diagram System Components Communication Flow 3. Microservices 3.1 Authentication Service User Registration and Login (Google account only) JWT token issuance and validation User Database (MySQL) 3.2 Blog Service Create, Read, Update, Delete (CRUD) Posts Commenting System (optional/simple) Post Database (MySQL) 3.3 API Gateway Route incoming requests to the correct service Validate JWT tokens for protected routes 4. Frontend (React App) Authentication Pages (Login, Signup) (Google Account) Blog Page (Post List, Post Detail, Create/Edit Post) 5. Deployment Docker Compose setup AWS ECS / EC2 Deployment Load Balancer AWS API Gateway 6. Security Considerations Only Google Account API Security Best Practice 7. Future Improvements User Profile Page Like/Favorite Posts Search Functionality

Apr 26, 2025 - 13:46
 0
[TOC]Build a full-stack simple blog application

System Design - Full stack Blog (simple blog) (Microservices Architecture)

1. Overview

  • Project Goal
  • Technology Stack
    • Frontend: React
    • Backend: Express (Node.js)
    • Database: MySQL
    • Containerization: Docker
    • Deployment: AWS (ECS or EC2)
    • API Management: AWS API Gateway

2. Architecture Diagram

  • System Components
  • Communication Flow

3. Microservices

3.1 Authentication Service

  • User Registration and Login (Google account only)
  • JWT token issuance and validation
  • User Database (MySQL)

3.2 Blog Service

  • Create, Read, Update, Delete (CRUD) Posts
  • Commenting System (optional/simple)
  • Post Database (MySQL)

3.3 API Gateway

  • Route incoming requests to the correct service
  • Validate JWT tokens for protected routes

4. Frontend (React App)

  • Authentication Pages (Login, Signup) (Google Account)
  • Blog Page (Post List, Post Detail, Create/Edit Post)

5. Deployment

  • Docker Compose setup
  • AWS ECS / EC2 Deployment
  • Load Balancer
  • AWS API Gateway

6. Security Considerations

  • Only Google Account
  • API Security Best Practice

7. Future Improvements

  • User Profile Page
  • Like/Favorite Posts
  • Search Functionality