This is a simple bash script for creating an express app using node-starter kit (it is fully customizable).
This script was wriiten mostly for personal use, but feel free to make it your own 🙂!
- Clone this repo
git clone /~https://github.com/timolinn/create-node-app
- Then run
cd create-node-app
Make the script executable on bash:
chmod u+x create-node-app
The script is ready to use!!! 😁.
Go ahead and run any of the commands below
./create-node-app
// OR
./create-node-app newapp
// OR
./create-node-app -s /~https://github.com/example/another-node-kit
// For the rest
./create-node-app -h
First create a bin
in your home directory:
mkdir ~/bin
Copy the script to the bin folder
cp ./create-node-app ~/bin
Execute the following command:
// Add this to `.bash_profile` to persist to persist it. Then open a new shell.
export PATH=$PATH:$HOME/bin
That's it! Now you can run create-node-app
from anywhere.
Simple run rm ~/bin/create-node-app
Doesn't work well if source URL is incorrect. see TODO
- Add error handling for invalid git url
- Add support for private repository