This is a personal Markdown editor I created using the MERN (MongoDB, Express.js, React, Node.js) stack. It provides a user-friendly interface for creating and editing Markdown documents. Markdown is a lightweight markup language that allows you to format plain text using easy-to-read and easy-to-write syntax. This project enables you to write and preview Markdown content in real-time. My motivation for making it was to see if i could make it, to be honest. I learned how use other libraries in my code as making my own real time text to markdown functionality would have made this project take forever to complete. It was also made using MERN Stack. If i had more time with this project I would make the Markdown Files sperate by user instead of a "community" folder. My focus was on learning how it would work, not making it a viable SAAS.
- Real-time Markdown preview
- Rich text editor with syntax highlighting
- Document management with Create, Read, Update, and Delete (CRUD) operations
- Responsive design for various devices
To get started with your personal Markdown editor, follow the steps below:
- Node.js and npm installed on your machine
- MongoDB database (local or cloud-based)
-
Clone this repository:
git clone https://github.com/your-username/markdown-editor.git
-
Navigate to the project directory:
cd markdown-editor
-
Install server dependencies:
npm install
-
Navigate to the client directory:
cd client
-
Install client dependencies:
npm install
-
Return to the root project directory:
cd ..
-
Create a
.env
file in the project root and set your environment variables. You can use.env.example
as a template. -
Start the development server:
npm run dev
Your personal Markdown editor should now be running. You can access it in your web browser at http://localhost:3000
.
Make sure to configure the following environment variables in your .env
file:
MONGO_URI
: The connection URL for your MongoDB database.PORT
: The port on which the server will run (default is 5000).CLIENT_URL
: The URL of your client application (e.g.,http://localhost:3000
in development).
- Create a new document by clicking "New Document."
- Write or edit your Markdown content in the editor.
- Your changes will be automatically previewed on the right side of the editor.
- Save or update your document.
- View, edit, or delete your documents from the home screen.
This personal project is licensed under the MIT License. You have full control over how you choose to use and share it.
- Thanks to the MERN stack and open-source contributors for the tools and libraries used in this project.