GitHub: App Repo
Git: Docs, Download
-
# clone project from github git clone https://github.com/mqschwanda/RD-Listen) # navigate into the code directory where application lives cd rd-listen/ # install NPM packages npm install
-
# The git remote set-url command changes an existing remote repository URL. git remote set-url origin https://github.com/<USERNAME>/<REPOSITORY>.git # Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'. git add . # Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again. git commit -m "Upload App" # Pushes the changes in your local repository up to the remote repository you specified as the origin git push -u origin master
-
Docs: git status
# check current working branch by returning a status report from git git status
-
Docs: git checkout
# change current working branch to an existing branch named `<BRANCH_NAME>` git checkout <BRANCH_NAME>
-
Docs: git checkout
# change current working branch by creating a new branch named `<BRANCH_NAME>` git checkout -b <BRANCH_NAME>
-
Docs: git add | git commit | git push
# Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD <YOUR-FILE>'. git add . # Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again. git commit -m "<COMMIT_MESSAGE>" # Pushes the changes in your local repository up to the `<BRANCH_NAME>` of the remote repository you specified as origin git push origin <BRANCH_NAME>
-
Docs: git pull
# Pulls contents from a remote repository's `<BEANCH_NAME>` into your local repository git pull origin <BRANCH_NAME>
Node: Docs, Download
NPM: Docs
-
# Runs package.json start script npm start
-
# Runs `package.json` test script npm run test
-
# Runs `package.json` lint script and returns ESlint report npm run lint
-
Docs: npm install
# Install and save a node module to the `package.json` # If the node package only for dev pass the `--save-dev` flag instead npm install <PACKAGE_NAME> --save
-
Docs: npm update
# Every so often, you should update the packages you depend on so you can get any changes that have been made to code upstream. npm update
Docs: Deploying with Git, Deploy to Heroku with Git,
# Create a Heroku app from the command line
heroku create
# Link to Heroku with a git remote.
heroku git:remote -a <APP_NAME> -r <REMOTE_NAME>
# Set this repository as the buildpack URL
heroku buildpacks:set -r <REMOTE_NAME> https://github.com/AdmitHub/meteor-buildpack-horse.git
# Set the ROOT_URL environment variable
heroku config:set -r <REMOTE_NAME> ROOT_URL="https://<APP_NAME>.herokuapp.com"
#
git push <REMOTE_NAME> master
The application is now hosted at https://<APP_NAME>.herokuapp.com