server-seed
v1.0.2
Published
A CLI tool for setting up a backend environment
Readme
Server-Seed
A simple CLI tool for setting up a backend environment with Express and MongoDB.
📌 Features
✅ Interactive CLI for backend project setup
✅ Options for Basic, Extended, and Full installation
✅ Automatically sets up Express server, MongoDB connection, and folder structure
✅ Works on Linux, macOS, and Windows (with Git Bash/WSL)
📦 Installation
1️⃣ Run Without Installing (Recommended)
npx server-seed
2️⃣ Install Globally
npm install -g server-seed
Then, run:
server-seed
🚀 Usage Once you run the command, you'll see a prompt like this:
? Choose one installation from below (Use arrow keys)
❯ basic (express server & .env)
extended (basic + mongoDB + directories)
full (full (extended + dummy data + cors, bcrypt, jwt))📜 Installation Options
Basic = Express server, .env setup
Extended = Express server, MongoDB, Routers, Controllers (empty directories)
Full = Express server, MongoDB, directories with dummy data, cors, bcrypt, jsonwebtoken
After selecting an option, the script will automatically create the necessary files and folders. 🎉
🔧 How It Works
- Prompts the user for the type of setup
- Creates files/folders based on the selection
- Initializes package.json and installs dependencies
- Generates boilerplate Express server and MongoDB connection
- Runs on all major OS (Windows/Linux/macOS)
🛠 Requirements
Node.js 14+ Bash terminal on Windows (Git Bash or WSL recommended)
📄 License
This project is licensed under the MIT License.
