📦 @pickspot/create-node-app
A simple CLI tool to scaffold a new Node.js + Express + TypeScript backend project with Prettier, ESLint, environment config, and a clean folder structure — used internally at Pickspot.
✨ Features
- TypeScript preconfigured
- Express.js boilerplate with routes, controllers, services
- ESLint & Prettier integration
- Environment setup with
.env
and .env.example
- Error handling structure
- Utility-first project structure
🚀 Quick Start
npm init @pickspot/create-node-app
Then follow the prompts:
✔ Project name: › my-api
Once complete:
cd my-api
npm run dev
🗂 Folder Structure
my-api/
├── src/
│ ├── config/
│ ├── controllers/
│ ├── docs/
| ├── errors
│ ├── routes/
│ ├── services/
│ ├── models/
│ ├── middlewares/
│ ├── utils/
│ ├── types/
│ ├── app.ts
│ └── server.ts
├── tests/
├── .env
├── .env.example
├── .prettierrc
├── tsconfig.json
├── package.json
└── README.md
📜 Scripts
Script | Description |
---|
npm run dev | Start dev server with ts-node |
npm run build | Compile TypeScript to dist/ |
npm run lint | Lint code with ESLint |
npm run start | Start compiled JS app |