A minimal MERN note-taking app with CRUD and a very simple UI (no build step, React via CDN).
- Node.js 18+
- MongoDB running locally or a MongoDB URI
- Install dependencies:
npm install
- Create
.envfrom example and set your Mongo URI if needed:copy .env.example .env # Windows # or cp .env.example .env # macOS/Linux
- Start server:
npm run start # or during development with auto-reload npm run dev - Open
http://localhost:3000in your browser.
GET /api/notes– list notesPOST /api/notes– create note{ title, content }GET /api/notes/:id– get onePUT /api/notes/:id– update{ title, content }DELETE /api/notes/:id– delete
- The frontend is served from
public/and uses React 18 via CDN and Babel for JSX. - Data model is
title,content, and timestamps.