Markdown to HTML Converter Project
This is a full-stack learning project consisting of a React client and a Node.js/Express server.
client/: React + Vite + Tailwind CSS frontend.server/: Node.js + Express + TypeScript + PostgreSQL backend.
- Node.js (v18 or higher)
- PostgreSQL Database
Ensure you have a PostgreSQL database running. Create a database (e.g., markdown_db).
Copy .env.example to server/.env and update the values:
cp .env.example server/.env
# Edit server/.env with your DB credentialsYou need to install dependencies for both client and server.
# In root
cd server && npm install
cd ../client && npm installServer:
cd server
npm run devServer runs on http://localhost:3000.
Client:
cd client
npm run devClient runs on http://localhost:5173.
To run client-side tests, navigate to the client/ directory and execute:
npm testClient tests use vitest.
To run server-side tests, navigate to the server/ directory and execute:
npm testServer tests use jest.
- Real-time Preview: Type markdown and see HTML instantly.
- Persistence: Save your converted HTML to a PostgreSQL database.
- Monorepo Style: Clear separation of concerns.
- Strict TypeScript: Used throughout for type safety.
- Prisma ORM: Uses Prisma ORM.