A fast and opinionated Node.js CLI tool to scaffold a prebuilt Typescipt express server with TypeScript, Express, and a ready-to-use folder structure. Perfect for quickly starting backend projects with all essential boilerplate in place.
- Create a project root folder with a valid name.
- Initialize npm package with
"type": "module". - Automatically install dependencies:
express,cors
- Automatically install dev dependencies:
typescript,nodemon,@types/express,@types/cors
- Prebuilt TypeScript project setup with
tsconfig.json. - Generates a
srcfolder with subfolders:controllers,middlewares,routes,services,types,utils
- Creates an
index.tsfile to start coding immediately. - Provides npm scripts for build and development:
npm run build:watch– watch and compile TypeScriptnpm run dev:watch– start server in watch mode
Make sure you have Node.js v18+ installed.
# Clone the repository
git clone https://github.com/Diptabose/create-ts-server.git
cd create-mer-server