Skip to content

Nisty26/markdown-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to HTML Converter Project

This is a full-stack learning project consisting of a React client and a Node.js/Express server.

Project Structure

  • client/: React + Vite + Tailwind CSS frontend.
  • server/: Node.js + Express + TypeScript + PostgreSQL backend.

Prerequisites

  • Node.js (v18 or higher)
  • PostgreSQL Database

Getting Started

1. Database Setup

Ensure you have a PostgreSQL database running. Create a database (e.g., markdown_db).

2. Environment Configuration

Copy .env.example to server/.env and update the values:

cp .env.example server/.env
# Edit server/.env with your DB credentials

3. Install Dependencies

You need to install dependencies for both client and server.

# In root
cd server && npm install
cd ../client && npm install

4. Run the Project

Server:

cd server
npm run dev

Server runs on http://localhost:3000.

Client:

cd client
npm run dev

Client runs on http://localhost:5173.

Testing

Client Tests

To run client-side tests, navigate to the client/ directory and execute:

npm test

Client tests use vitest.

Server Tests

To run server-side tests, navigate to the server/ directory and execute:

npm test

Server tests use jest.

Features

  • Real-time Preview: Type markdown and see HTML instantly.
  • Persistence: Save your converted HTML to a PostgreSQL database.

Architecture Notes

  • Monorepo Style: Clear separation of concerns.
  • Strict TypeScript: Used throughout for type safety.
  • Prisma ORM: Uses Prisma ORM.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 84.0%
  • Shell 7.3%
  • CSS 6.5%
  • JavaScript 1.1%
  • HTML 1.1%