This repository contains a complete scaffold for the Coding Assignment: Blog Platform. It includes:
- backend: Node.js + Express + Mongoose (MongoDB) with JWT auth, posts CRUD, comments, likes, search & pagination.
- web: React + Redux Toolkit + SCSS minimal frontend scaffold to consume the API.
- mobile: Flutter + GetX minimal scaffold.
- Authentication (signup/login) with JWT.
- Blog CRUD (create/edit/delete own posts).
- View feed, view single post (backend supports).
- Likes, comments, bookmarks (backend endpoints implemented).
- Search by title & tag, pagination.
- Install Node.js (>=18), MongoDB.
- In
backend
folder:npm install
- Setup
.env
(sample provided). - Start MongoDB (
mongod
) and run:npm run dev
ornpm start
. API server runs on http://localhost:4000
- In
web
folder:npm install
npm start
(React dev server)
- Use Flutter SDK.
flutter pub get
inmobile
folder. flutter run
to run on device/emulator.
See AI_PROMPTS.md
for the exact prompts used to generate code snippets and accelerate scaffolding.
This scaffold is packaged as a ZIP. Extract into your repo and push.