An all-in-one script for effortlessly creating an Express app with TypeScript, ESlint, Prettier, and Husky pre-configured — uses zx command-line tool.
- Download the express-generator script:
wget -O $HOME/.local/bin/express-generator https://raw.githubusercontent.com/bertdida/express-generator/main/express-generator
- Make the script executable:
chmod +x $HOME/.local/bin/express-generator
-
Add
$HOME/.local/bin
to your path. -
To generate a new Express.js application, navigate to the directory where you want to create the app and run the following command:
express-generator app