- To use the scripts put them in a folder I usually put mine in
~/.bash_scripts - Make them executeable
chmod +x ~/.bash_scripts/* -R - Run the script you want to run eg..
bash ~/.bash_scripts/setup-react.shor Double Click it. - You can create aliases for them as well
- You can put them in
~/.bashrcor~/.bash_aliases alias cra ='~/.bash_scripts/setup-react.sh
- This will run the script in your current folder.
- Edit
/etc/sudoers - Add
YourUsernameHere ALL=(ALL) NOPASSWD: ALL source /etc/sudoers/or open a new terminal.
- Setup React App With Working Navigation
- Asks for App Name
- Installs React Router
- Creates Files (With Content)
- AppRouter
- Private Route
- NavBar
- Header
- Footer
- Home
- About
- Contact
- Rewrites app and index.js
- Git Create Branch
- Asks for branch name
- Creates a new branch
- Sets the upstream for the branch
- Git Deploy
- Asks for a Commit message
- Adds files
- Commits files with commit message
- Pushes files to current branch as long as the upstream is set
- Clean Node Modules
- Digs down deep to remove node modules folders