nodejs-starter-boilerplate
v1.0.0
Published
A Node.js starter boilerplate with Express, dotenv, and a clean project structure. Perfect for quickly starting new Node.js projects.
Downloads
6
Maintainers
Readme
Node.js Starter Boilerplate
A Node.js starter boilerplate for building Express applications, with a CLI for easy project scaffolding.
Features
- Express.js setup
- Environment variable support with dotenv
- Clean project structure: controllers, models, routes, config
- CLI to scaffold new projects instantly
- Sample route returns
hello developer
Quick Start (Recommended)
After publishing to npm, you can scaffold a new project using:
npx nodejs-starter-boilerplate my-appReplace my-app with your desired project folder name. This will:
- Create a new folder with your project
- Copy all boilerplate files
- Install all dependencies automatically
Then, to start your new project:
cd my-app
cp .env.example .env # Set your environment variables
npm startVisit http://localhost:3000 to see hello developer.
Manual Setup (Alternative)
- Clone this repository:
git clone https://github.com/rohit-mankotia/nodejs-starter-boilerplate.git cd nodejs-starter-boilerplate - Install dependencies:
npm install - Copy
.env.exampleto.envand set your environment variables. - Start the server:
npm start
Project Structure
controllers/
models/
routes/
config/
.env.example
index.jsLicense
MIT
