🔹 Kickstart your development journey with Vault! This CLI tool lets you instantly set up a fully functional backend or full-stack application with just one command. No more manual configurations – just code! 🎯
✅ Choose between Full Stack (MERN) or Backend-only
✅ Pre-configured Express.js Backend
✅ MongoDB Integration with Mongoose
✅ Vite + React + Tanstack Router (Frontend)
✅ Angularjs + TailwindCSS (Frontend)
✅ Vuejs + TailwindCSS (Frontend)
✅ Optional Frontend Frameworks: React, Vue, or Angular
✅ .env File for Easy Configuration
✅ Nodemon for Seamless Development
✅ Pre-structured Folder System
✅ Automatic Dependency Installation
To get started with the VaultBase template, follow these steps:
-
Install the template globally:
npm install -g create-vault
-
Initialize the project:
create-vault
For future projects, you can quickly set up a new VaultBase project by running:
npx create-vault@latest
This command will prompt you to select:
🕐 Full Stack (MERN) – Includes both frontend and backend.
🕐 Backend Only – Generates only the server-side setup.
Additionally, for the Full Stack option, you can now choose between:
- ⚡ React
- 🌟 Vue
- 🍇 Angular
Once generated, your project will look like this:
🗁 my-project
├── 🗁 app/ # Frontend (Only in Full Stack setup)
│ ├── 🗍 index.jsx
│ └── ...
├── 🗁 server/ # Backend
│ ├── 🗁 controllers/
│ ├── 🗁 models/
│ ├── 🗁 routes/
│ ├── 🗁 config/
│ ├── 🗁 middlewares/
│ ├── 🗁 utils/
│ ├── 🗍 .env
│ ├── 🗍 server.js
│ ├── 🗍 package.json
│ └── 🗍 .gitignore
├── 🗍 README.md
cd my-project/server
npm start
Before running, update your MongoDB connection in .env
:
MONGO_URI=your_mongodb_connection_url
PORT=3000
cd my-project/app
npm run dev
💻 Backend: Node.js, Express.js, Mongoose, Dotenv, Cors, JSON Web Token (optional)
🎨 Frontend (Full Stack Setup): Vite, React, Vue, Angular, Tanstack Router
🔹 Want to make this even better? Fork the repo, make your changes, and submit a pull request! We welcome all contributions. 💡
This project is licensed under the MIT License - see the LICENSE file for details.
You are free to use, modify, and distribute this project, but please attribute it to the original creator.
Thank you for respecting the authorship and usage terms.