
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qixโs account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
create-mern-latest
Advanced tools
A CLI tool to quickly set up a full-stack MERN (MongoDB, Express, React, Node.js) project with modern tooling and best practices.
A CLI tool to quickly set up a full-stack MERN (MongoDB, Express, React, Node.js) project with modern tooling and best practices.
npx create-mern-app@latest
Or install globally:
npm install -g create-mern-latest
create-mern-latest
After running the command, you'll be guided through an interactive setup:
The tool will then:
client
and backend
foldersYour new project will have this structure:
your-project-name/
โโโ client/ # Frontend React application
โ โโโ public/ # Static files
โ โโโ src/ # React source files
โ โโโ package.json # Frontend dependencies
โ โโโ ... # Other frontend config files
โ
โโโ backend/ # Node.js/Express server
โโโ models/ # Database models
โโโ routes/ # API routes
โโโ package.json # Backend dependencies
โโโ ... # Other backend config files
After setup:
Navigate to your project directory:
cd your-project-name
Start the frontend development server:
cd client
npm run dev
Start the backend server (in a separate terminal):
cd backend
npm start
The project comes pre-configured to use environment variables:
.env
file in both client
and backend
directoriesExample .env
in backend:
PORT=5000
MONGO_URI=mongodb://localhost:27017/yourdb
JWT_SECRET=your_secret_key
Depending on your ORM choice:
For Mongoose (MongoDB):
.env
fileFor Sequelize (SQL):
backend/config/database.js
client
directory)npm run dev
- Start development servernpm run build
- Build for productionnpm run lint
- Run linternpm run test
- Run tests (if testing was selected)backend
directory)npm start
- Start production servernpm run dev
- Start development server with nodemonnpm test
- Run tests (if testing was selected)If you selected Tailwind during setup:
tailwind.config.js
to customize your design system@tailwind base;
@tailwind components;
@tailwind utilities;
If you selected Bootstrap:
client/src/main.jsx
(or index.js
)If you opted to include testing:
*.test.js
or *.test.jsx
backend/test/
directoryRun tests with:
cd backend
npm test
cd client
npm run build
dist
folder to your preferred hosting (Vercel, Netlify, etc.)Common Issues:
Installation fails:
--legacy-peer-deps
flagnpm cache clean --force
Frontend not connecting to backend:
client/vite.config.js
(or webpack config)Database connection issues:
.env
fileContributions are welcome! Please open an issue or submit a PR for any improvements.
This project is licensed under the MIT License.
This README provides:
1. Clear installation instructions
2. Detailed feature overview
3. Usage guide
4. Project structure explanation
5. Configuration options
6. Deployment instructions
7. Troubleshooting tips
8. Contribution guidelines
You can customize it further with:
- Badges (version, license, build status)
- Screenshots
- More detailed database configuration examples
- Specific deployment guides for different platforms
FAQs
A CLI tool to quickly set up a full-stack MERN (MongoDB, Express, React, Node.js) project with modern tooling and best practices.
The npm package create-mern-latest receives a total of 0 weekly downloads. As such, create-mern-latest popularity was classified as not popular.
We found that create-mern-latest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qixโs account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.