Skip to content

Instantly share code, notes, and snippets.

@andrit
Last active October 11, 2018 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrit/b5752fdd32014736c8929c3a720ec18c to your computer and use it in GitHub Desktop.
Save andrit/b5752fdd32014736c8929c3a720ec18c to your computer and use it in GitHub Desktop.
cretae a CRA JS project with a bash Script

create bash script init-cra.sh with Vim

mkdir to create space for project

echo "Initializing JS project at $(pwd)" git init npm init -y create-react-app . npm i node-sass redux react-redux react-router code .

With Server:

echo "Initializing JS project at $(pwd)" git init npm init -y npm i express mkdir controllers touch routes.js server.js mkdir ui cd ui create-react-app . npm i node-sass redux react-redux react-router code .

chmod u+x init-cra.hs ./init-cra.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment