NoteStack is a web application for managing notes and bookmarks, providing APIs for user authentication, note creation, and bookmark management.
- Node.js installed
- Git installed
- MongoDB installed and running
- A code editor (e.g., VS Code)
-
Clone the Repository
git clone https://github.com/shivamxverma/NoteStack.git
-
Navigate to the Client Directory
cd server -
Install Dependencies
npm install
-
Set Up Environmental Variables
- Create a
.envfile in theclientdirectory. - Add the required environmental variables (e.g., MongoDB URI, API endpoints) as specified in the
.env.examplefile or project documentation.
- Create a
-
Run the Development Server
npm run dev
-
Register User
POST https://notestack-o6b5.onrender.com/api/v1/users/register{ "fullName": "Shivam Verma", "email": "shivam12@gmail.com", "username": "shivam12@", "password": "12345678" } -
Login
POST https://notestack-o6b5.onrender.com/api/v1/users/login{ "username": "shivam12@", "email": "shivam12@gmail.com", "password": "12345678" } -
Logout
POST https://notestack-o6b5.onrender.com/api/v1/users/logout
-
Create Note
POST https://notestack-o6b5.onrender.com/api/v1/notes{ "title": "Notes on Http Methods", "content": "Http methods is used to tell the valid...", "tags": ["backend", "computer science", "web development"] } -
Get All Notes
GET https://notestack-o6b5.onrender.com/api/v1/notes/687525a2b04520a8bc88eaf5 -
Update Note
PUT https://notestack-o6b5.onrender.com/api/v1/notes/687526f72d2ce5ac74d56e29{ "title": "Notes on Http Methods and Headers", "content": "Http methods is used to tell the valid because of Nice and Well formatted things", "tags": ["backend", "computer science", "web development,computer networks"] } -
Delete Note
DELETE https://notestack-o6b5.onrender.com/api/v1/notes/687526f72d2ce5ac74d56e29 -
Search Notes
GET https://notestack-o6b5.onrender.com/api/v1/notes?q=http%20methods&tags=backend,computer%20science,web%20development
-
Create Bookmark
POST https://notestack-o6b5.onrender.com/api/v1/bookmarks{ "title": "learn marketing", "url": "https://en.wikipedia.org/wiki/Marketing", "tags": ["stocks", "marketing"] } -
Update Bookmark
PUT https://notestack-o6b5.onrender.com/api/v1/bookmarks{ "title": "learn frontend with mastering react", "url": "https://react.dev/learn", "tags": ["react", "frontend", "javascript"] } -
Delete Bookmark
DELETE https://notestack-o6b5.onrender.com/api/v1/bookmarks/6875347aaf623709c2cd6a02 -
Search Bookmarks
GET https://notestack-o6b5.onrender.com/api/v1/bookmarks?tags=frontend,react%20science,web%20development -
Favorite Bookmark
POST https://notestack-o6b5.onrender.com/api/v1/bookmarks/68753404af623709c2cd69fc/favorite