A simple and efficient back-end service for note-taking with Markdown, built with Node.js. This service provides several endpoints for creating, saving, and rendering notes, as well as checking grammar and handling user authentication.
- Grammar Check Endpoint: Allows you to check the grammar of a note.
- Save Notes Endpoint: Save notes in Markdown format.
- Render Markdown: Convert Markdown notes to HTML and retrieve the rendered version.
- Authentication: User authentication to access the endpoints securely.
- URL:
/api/grammar-check
- Method:
POST
- Description: Checks the grammar of the submitted Markdown note.
- Request Body:
{ "note": "Your markdown note text here." }
- URL:
/api/save-note
- Method:
POST
- Description: Saves the note passed in as Markdown text.
- Request Body:
{ "title": "Note Title", "content": "Markdown formatted content" }
- Response: A confirmation that the note has been saved successfully.
- URL:
/api/render-note
- Method:
POST
- Description: Converts the Markdown note into an HTML version and returns it.
- Request Body:
{ "content": "Markdown formatted content" }
- Response: The HTML-rendered version of the note.
- URL:
/api/auth
- Method:
POST
- Description: Authenticates the user to access protected routes.
- Request Body:
{ "username": "your_username", "password": "your_password" }
- Response: A JWT token for future requests.
You can see the full API docs by running the service and navigating to:
http://localhost:${PORT}/api-docs
-
Clone the repository:
git clone https://https://github.com/Elksass315/Markdown-Note-taking
-
Install dependencies:
npm install
-
Set up environment variables.
-
Run the application:
npm start
This project is licensed under the MIT License.