setupmyproject
v1.0.1
Published
Interactive CLI to quickly scaffold Vite + React + Tailwind projects with optional Express backend. Supports frontend-only, backend-only, or full-stack setup.
Maintainers
Readme
setupmyproject
🚀 Interactive CLI to quickly scaffold modern web projects with Vite, React, Tailwind CSS, and optional Express backend.
Features
- ⚡ Fast Setup - One command to create production-ready projects
- 🎨 Tailwind CSS - Pre-configured with Tailwind CSS v3
- 📦 Axios Included - HTTP client ready to use
- 🔄 Three Setup Modes:
- Frontend Only - React + Vite + Tailwind
- Backend Only - Express + Node.js server
- Full Stack - Complete frontend + backend setup
- 🚀 Auto-Start - Automatically starts dev servers after setup
- 💡 Interactive - Simple prompts to choose your setup type
Installation
npx setupmyprojectOr install globally:
npm install -g setupmyproject
setupmyprojectUsage
Simply run the command and choose your setup type:
npx setupmyprojectYou'll be prompted to select:
- Frontend Only - Creates a
client/folder with React + Tailwind - Backend Only - Creates a
server/folder with Express - Full Stack - Creates both
client/andserver/folders
What's Included
Frontend Setup
- ⚡ Vite + React (JavaScript)
- 🎨 Tailwind CSS v3 (fully configured)
- 📦 Axios (with interceptors)
- 🎯 Sample API integration
- ✨ Beautiful starter UI
Backend Setup
- 🚀 Express.js server
- 🔒 CORS configured
- 🔑 JWT support
- 📝 Environment variables (.env)
- 🔄 Nodemon for auto-reload
- 📋 .gitignore included
- ✅ Health check endpoint
Full Stack
- Everything from Frontend + Backend
- 🔗 Pre-configured API connection
- 🚀 Both servers start automatically
Project Structure
Frontend Only
client/
├── src/
│ ├── api/
│ │ └── axios.js # Axios instance
│ ├── App.jsx # Main component
│ └── index.css # Tailwind imports
├── package.json
└── tailwind.config.jsBackend Only
server/
├── index.js # Express server
├── .env # Environment variables
├── .gitignore
└── package.jsonFull Stack
client/ # React frontend
server/ # Express backendRequirements
- Node.js >= 18.0.0
- npm or yarn
License
MIT
Author
Aman Yadav - @aman-yadav-codes
Made with ❤️ for developers who want to start coding, not configuring.
