@ak-mern/fullstack
v1.0.2
Published
A CLI tool to instantly scaffold a **Node.js + Frontend fullstack boilerplate**.
Readme
🚀 @ak-mern/fullstack
A CLI tool to instantly scaffold a Node.js + Frontend fullstack boilerplate.
It allows you to choose between:
Next.js + Node
React (Vite) + Node
The project is cloned, dependencies are installed automatically, and environment files are generated for you.
🎯 Who Is This For?
This CLI is ideal for:
- Developers who frequently start fullstack projects
- Beginners learning MERN-style architecture
- Hackathon builders
- Anyone who wants a ready-to-run fullstack starter.
If you want a fast setup without manual folder creation and configuration, this tool is for you.
⚠️ Important Notes
- ❌ No TypeScript support (JavaScript only)
- Uses npm for installation
- Requires Git to be installed
- The target directory must be empty
📦 What It Sets Up
Depending on your selection:
Option 1: Next.js + Node
- Next.js frontend
- Express backend
- JWT authentication ready
- MongoDB connection template
.envfile auto-generated
Option 2: React (Vite) + Node
- Vite React frontend
- Express backend
- JWT authentication ready
- MongoDB connection template
.envfile auto-generated
🛠 Installation
You can run it directly with:
npx @ak-mern/fullstack🚀 Usage
- Create an empty folder:
mkdir my-app
cd my-app- Run the CLI:
npx @ak-mern/fullstackSelect your preferred template using arrow keys.
After setup:
cd server
npm run devand in another terminal:
cd client
npm run dev🔐 Environment Variables
The CLI automatically creates:
server/.envWith:
PORT=8000
MONGO_URI=mongodb+srv://<username>:<password>@cluster1.mongodb.net/<database_name>
JWT_SECRET=somesecretkey
CLIENT_URL=http://localhost:3000
CLIENT_URL_PROD=http://localhost:3000Update these values before running in production.
📄 License
MIT
👤 Author
Abhinav Kumar
GitHub: https://github.com/Abhinav-not-found
