A full-stack Markdown editor built with Node.js, Express, MongoDB, and vanilla HTML, CSS, and JavaScript. The editor allows real-time Markdown preview, file saving, and loading from a MongoDB database.
- Real-time Markdown Preview
- Save and Open Markdown files
- Simple and lightweight implementation
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express
- Database: MongoDB
- Markdown Rendering: Marked.js
-
Clone the repository:
git clone https://github.com/Sharad104/MinimalMarkdownPreviewer cd markdown-editor
-
Install dependencies:
npm install
-
Set up your MongoDB atlas DB or use mine in dotenv ;>.
-
Start the server:
node server.js
-
Visit http://localhost:3000 in your browser to start using it.
Usage
Write Markdown in the left editor.
Preview Markdown on the right.
Save your Markdown file with a Title.
Open saved Markdown files by entering the Title.
Type "githubpreview" in input and click on open ! as "README.md" is deleted from MongoDB.