server-seed v1.0.1
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 (server, mongodb, router, model)
full (server, mongodb, mvc folders)
š Installation Options
Basic = Express server, .env setup
Extended = Express server, MongoDB, Router, Models
Full = Express server, MongoDB, MVC folders
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.