express-cli-creator v1.0.0
Express CLI
š Express CLI is a simple command-line tool that allows you to quickly generate Express.js applications in either JavaScript or TypeScript.
š Features
Choose between JavaScript or TypeScript projects
Automatically sets up project structure
Installs required dependencies
Supports EJS templating (optional)
š„ Installation
1ļøā£ Install Globally
To use Express CLI globally, install it via npm:
npm install -g express-cli-generator
2ļøā£ Usage
Create a new Express project by running:
express-cli create my-app
This will prompt you to choose between JavaScript and TypeScript.
3ļøā£ Navigate & Install Dependencies
cd my-app npm install
4ļøā£ Run the App
For JavaScript:
npm run dev
For TypeScript:
npm run dev # Runs with ts-node npm run build && npm start # Compiles and runs built JS files
ā” Project Structure
my-app/
āāā src/
ā āāā controllers/
ā āāā middlewares/
ā āāā models/
ā āāā routes/
ā āāā index.js / index.ts
āāā config/
āāā public/
āāā views/ (if EJS is selected)
āāā package.json
āāā tsconfig.json (if TypeScript is selected)
āāā .gitignore
š Contributing
Contributions are welcome! Follow these steps to contribute:
Fork the Repository
Clone your Fork
git clone https://github.com/your-username/express-cli.git
Install Dependencies
npm install
Make Your Changes
Test Your Changes
node index.js create test-app
Commit & Push
git add .
git commit -m "Your changes"
git push origin your-branch
Create a Pull Request
5 months ago