1.0.4 • Published 5 months ago
mern-cli-v1 v1.0.4
CLI MERN Project Setup
This project setup script allows you to quickly create a full-stack application with React (frontend), TailwindCss (style), MongoDB (database), Node.js (backend), and Express (web framework). It initializes the project folder structure, sets up the backend with Node.js, Express, and MongoDB, and creates the frontend with React, Vite, Tailwind CSS, and Toast notifications.
Prerequisites
Make sure you have the following installed on your system:
- Node.js (with
npm
): Install Node.js - MongoDB: Install MongoDB
Installation
To use the setup script, run the following command:
npm i mern-cli-v1
Run the CLI to create a new project:
create-mern-project
Project Structure After running the CLI, the following project structure will be created:
<your-project-name>/
├── backend/
│ ├── config/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ ├── server.js
│ └── .env
├── frontend/
│ ├── public/
│ └── src/
│ ├── App.jsx
│ ├── index.css
│ ├── main.jsx
│ └── tailwind.config.js