How tawanalves/skyblog works
Project type and purpose
• This is a full-stack blog application (“skyblog”) with:
• Frontend: React + TypeScript (Vite)
• Backend: Node.js (Express-style MVC), handling CRUD for posts and image uploads
• Purpose: allow users to create, read, update, and delete blog posts, including image attachment.
File structure
• Top-level:
• client/ – React/Vite project
• server/ – Node.js project
• Client folder:
• src/components & src/pages – modular React UI
• src/services – API wrappers (api.tsx, blogService.tsx)
• Server folder:
• src/routes/postRoute.js – Express route definitions
• src/controllers/PostController.js – business logic (CRUD)
• src/helpers/multer.js & files.js – file-upload and filesystem helpers
• src/config/upload.js – storage configuration
• uploads/ – persisted image files
• Test folders present both client and server side; build config via babel.confing.js, jest.config.js, package.json, etc.
README for additional insights
• Confirms ports: server on 3000, client on 5173
• Stack: React/TS frontend, Node.js backend, filesystem-based storage
Essential details
• Six server sub-layers (config, routes, controllers, helpers, uploads, tests)
• Frontend split (components, pages, global styles, services)