This project is a starter template for a MERN (MongoDB, Express, React, Node.js) stack application. It includes a client-side application built with React, TypeScript, and Vite, and a server-side application built with Node.js and Express.
it also uses pnpm workspace
- Node.js >= 20
- npm >= 7
- pnpm >= 9.12
- Clone the repository:
git clone <repository-url>
cd mern-starter
- Install dependencies:
pnpm install -w
To start the development server for both client and server:
pnpm run dev
To build the application for production
pnpm run build
To start the application in production mode
pnpm run start
pnpm run docker:dev
pnpm run docker:prod