Skip to content

gurudevmagar/mern-notes-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN Notes App

A minimal MERN note-taking app with CRUD and a very simple UI (no build step, React via CDN).

Prerequisites

  • Node.js 18+
  • MongoDB running locally or a MongoDB URI

Setup

  1. Install dependencies:
    npm install
  2. Create .env from example and set your Mongo URI if needed:
    copy .env.example .env   # Windows
    # or
    cp .env.example .env     # macOS/Linux
  3. Start server:
    npm run start
    # or during development with auto-reload
    npm run dev
  4. Open http://localhost:3000 in your browser.

API

  • GET /api/notes – list notes
  • POST /api/notes – create note { title, content }
  • GET /api/notes/:id – get one
  • PUT /api/notes/:id – update { title, content }
  • DELETE /api/notes/:id – delete

Notes

  • The frontend is served from public/ and uses React 18 via CDN and Babel for JSX.
  • Data model is title, content, and timestamps.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published