A simple and clean note-taking web application built with Node.js, Express, and EJS. This app allows you to create, view, search, and delete notes β all in an elegant interface.
- Node.js β Server runtime
- Express.js β Web framework
- EJS β HTML templating
- Vanilla CSS β Page styling
- Nodemon β Auto-restarts server in dev mode
- β Create new notes with title & content
- π Search notes by title
- π View full content of each note
- π Delete notes
- π¨ Clean responsive UI
- π§ In-memory storage (no database)
notes-app-exp/
βββ public/
β βββ notes.css # Styles for notes list view
β βββ singleNote.css # Styles for single note view
β βββ style.css # Shared/general styles
β
βββ views/
β βββ createNote.ejs # Form to create a note
β βββ errMessage.ejs # Error display page
β βββ index.ejs # Optional: redirects or root view
β βββ notes.ejs # List & search all notes
β βββ singleNote.ejs # Display individual note
β
βββ db.mjs # In-memory data store
βββ index.mjs # Main Express app and routes
βββ package.json # Project metadata & scripts
βββ package-lock.json # Dependency lock file
βββ README.md # You're reading it now!
- Clone the repository
git clone https://github.com/yourusername/notes-app-exp.git
cd notes-app-exp- Install dependencies
npm install- Run the development server
npm start- Visit in browser
http://localhost:3000/notes
| Method | Route | Description |
|---|---|---|
| GET | /notes |
View all notes (and search) |
| GET | /notes/:id |
View a single note |
| GET | /createNote |
Show form to create a note |
| POST | /createNote |
Save the new note |
| POST | /notes/:id/delete |
Delete a specific note |
This app uses an in-memory array in db.mjs to store notes temporarily.
Restarting the server will clear all notes.
For persistence, consider integrating a database like MongoDB, SQLite, or PostgreSQL.
- Add persistent database support
- Add edit/update functionality
- Add user authentication
- Improve mobile responsiveness
- Support Markdown in notes
Your Name
GitHub: @hitesh-ctrl
This project is licensed under the MIT License.