UNPKG

create-node-app-starter

Version:
49 lines (35 loc) โ€ข 1.08 kB
# ๐Ÿš€ create-node-app-starter A simple and powerful CLI tool to generate a **Node.js starter template** with Express, MongoDB, dotenv, and clean project structure. Perfect for quick project setup without repeating boilerplate code! --- ## โญ Features - โšก Instant Node.js project setup - ๐Ÿ“ฆ Preconfigured Express server - ๐Ÿ—„ MongoDB connection using Mongoose - ๐Ÿ” dotenv environment setup - ๐Ÿ“ Clean folder structure - ๐Ÿงช Sample routes - ๐Ÿ”ฅ Server starts **only after MongoDB connects** --- ## ๐Ÿ“ฅ Installation & Usage You don't need to install the package globally. Just run: ```sh npx create-node-app-starter my-app ``` Then: ```sh cd my-app ``` ## ๐Ÿ” Environment Setup (.env) Create a `.env` file in the root of the generated project (e.g. `my-app/.env`): ```env PORT=5000 MONGO_URI=mongodb://localhost:27017/test ``` - `PORT` โ†’ the port your Express server will run on (default 5000) - `MONGO_URI` โ†’ your MongoDB connection string Finally, start the server: ```sh npm start ```