A full-featured blog application that allows users to create, edit, and view articles written in Markdown. The application automatically converts Markdown content to HTML for display while preserving the original Markdown for editing.
- Create Articles: Write blog posts using Markdown syntax
- Edit Articles: Update existing articles while maintaining Markdown formatting
- Delete Articles: Remove unwanted articles
- Markdown Support: Full support for Markdown syntax including:
- Headings
- Lists (ordered and unordered)
- Text formatting (bold, italic)
- Code blocks with syntax highlighting
- Tables
- Links and images
- Blockquotes
- Backend: Node.js with Express
- Database: MongoDB with Mongoose
- Templating: EJS
- Markdown Processing: Marked.js
- Styling: Bootstrap 5
-
Clone the repository:
git clone https://github.com/akshajdevkv/markdown-blog.git cd markdown-blog
-
Install dependencies:
npm install
-
Start MongoDB (make sure MongoDB is installed and running)
-
Start the application:
npm start
-
Open your browser and navigate to
http://localhost:5000
-
Creating a New Article:
- Click the "New Article" button
- Fill in the title, description, and markdown content
- Click "Save"
-
Viewing Articles:
- All articles are displayed on the home page
- Click "Read More" to view the full article
-
Editing Articles:
- Navigate to the article you want to edit
- Click the "Edit" button
- Update the content and click "Save"
-
Deleting Articles:
- Click the "Delete" button on an article card or on the article page
models/
- Database modelsroutes/
- Express routesviews/
- EJS templatesserver.js
- Main application file
MIT