create-express-docker-app
v1.0.8
Published
π create-express-app
Readme
π create-express-app
A simple CLI to scaffold an Express.js project with optional features like dotenv, morgan, ESLint, Docker, and @/ aliasing.
π¦ Installation
Install globally using npm:
npm install -g create-express-docker-app
π Usage
Run the CLI to generate a new Express app:
create-express-docker-app
You'll be prompted with a few questions:
π Project name
π Use .env file?
π Add Morgan for request logging?
π³ Use Docker for deployment?
β
Use ESLint for code linting?
π Set up @/ as alias to src/?
βοΈ Auto-install dependencies?
π Generated Project Structure (based on your choices)
my-app/
βββ src/
β βββ index.js # Express app entry
βββ .env # Optional
βββ .eslintrc.json # Optional
βββ .gitignore
βββ .prettierrc
βββ Dockerfile # Optional
βββ jsconfig.json # Optional path alias config
βββ package.json
βββ README.md
β
Example
npx create-express-docker-app
? Project name? my-express-app
? Do you want to use an environment file? Yes
? Do you want to use morgan for logging? Yes
? Do you want to use Docker for deployment? No
? Do you want to use ESLint for code linting? Yes
? Do you want to set @/ as src path alias? Yes
? Do you want to auto-install dependencies? Yes
Then:
cd my-express-app
npm start
Your Express app will be running on http://localhost:3000
π‘ Scripts
"scripts": {
"dev": "node src/index.js",
"start": "node src/index.js" // or docker command if Docker was chosen
}
π License
MIT Β© Warisamir
---
Let me know if you want to add badges, demo GIFs, or publish instructions too.