Skip to content

Create a new NodeJS express app using an existing node starter kit

License

Notifications You must be signed in to change notification settings

timolinn/create-node-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Create Node App 😄

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 🙂!

Installation

  • 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!!! 😁.

Usage

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

Make create-node-app command accessible from anywhere on your system

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.

Uninstall

Simple run rm ~/bin/create-node-app

Warning

Doesn't work well if source URL is incorrect. see TODO

TODO

  • Add error handling for invalid git url
  • Add support for private repository

About

Create a new NodeJS express app using an existing node starter kit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages