The Notes App is a full-stack note management application built with React for the frontend and Node.js/Express for the backend. It enables users to create, read, update, and delete notes, and stores data in MongoDB.
- Create notes with title, content, and status.
- View all notes in card or table view.
- Edit and delete notes.
- View note creation date details.
- Responsive UI with modal support.
- React
- Vite
- React Router
- Axios
- React Icons
- Node.js
- Express
- MongoDB
- Mongoose
- dotenv
- Node.js installed
- npm installed
- MongoDB database available
git clone https://github.com/gulshankumar143/Notes-App.git
cd Notes-AppCreate a .env file inside backend/ with the following values:
PORT=5000
FRONTEND_URL=http://localhost:5173Install backend dependencies:
cd backend
npm installInstall frontend dependencies:
cd ../frontend
npm installcd backend
npm run devThe backend API will run at:
http://localhost:5000
cd frontend
npm run devBy default, Vite will serve the frontend at:
http://localhost:5173
- Make sure the backend is running before using the frontend application.
- The frontend expects the API at
http://localhost:5000/api/notes. - If you need a different frontend port, update
FRONTEND_URLinbackend/.env.
npm run dev— start backend with nodemonnpm start— start backend with Node
npm run dev— start Vite development servernpm run build— build frontend for productionnpm run preview— preview the production build
- If the frontend fails to load, verify
npm installcompleted successfully infrontend/. - If the backend fails to connect, verify
MONGO_URIinbackend/.env. - Use browser console and terminal logs to check API request errors.