A CLI tool to generate a basic Express.js project with TypeScript or JavaScript.
You can run this tool using
npm create basic-express-server my-app
Or install it globally:
npm install -g create-basic-express-server
create-basic-express-server my-app
This tool generates an Express.js project with the following structure:
my-app
│── package.json
│── .gitignore
│── .env
│── tsconfig.json (for typescript)
└── src
├── controllers
├── middlewares
├── models
├── types (for typescript)
├── utils
└── server.ts (for typescript) or server.js (for javascript)
Run the following command to generate a new project:
npm create basic-express-server my-app
cd my-app
npm install
In Development
npm run dev
In Production
npm run start
cd my-app
npm install
For Development Run in two Terminal
npm run watch
npm run dev
For Production
npm run build
npm run start
✅ Generate an Express.js project in seconds
✅ Supports both JavaScript and TypeScript
✅ Pre-configured folder structure
✅ Adds essential dependencies (express
, dotenv
, etc.)
✅ Automatically sets the latest package versions in package.json
Feel free to submit issues and pull requests on GitHub.
This project is licensed under the MIT License.