Development of The Virtual Closet
- git clone https://github.com/JakeHam/TheVirtualCloset.git
- cd VirtualClosetApp
- npm install -g ionic
- npm install -g cordova
- ionic serve (Application will open in new window)
- git clone https://github.com/JakeHam/TheVirtualCloset.git (assuming you have not done so already)
- cd VirtualClosetApp
npm install(npm install does not seem to install packages properly. When you try to run the tests, npm will let you know which packages need installed via 'npm install -g [package]')- Unit Tests: karma start
- End-to-end tests:
- ionic serve
- webdriver-manager start
- protractor protractor.conf.js
- To run a specific test suite, you can use protractor protractor.conf.js --suite suitename
- Available Test Suites: login | navigation | account
For the development of The Virtual Closet, we will be following the "Feature Branch Workflow" for Git integration. Feel free to read more about it here. Since we're all using IntelliJ for development, I've created a helpful guide (with pictures!) in case you get lost.
- Make sure that you are on your local master and that it is up to date.
- Create a new branch from your local master.
- Name the branch as something relevant to the feature that you will be working on.
-
Create your changes.
-
Before committing, pull from master to ensure that your branch is up-to-date and resolve any merge conflicts.
- Commit your changes. Make sure to add a helpful commit message. Under the 'Commit' dropdown, select 'Commit and Push...' to immediately push your changes to GitHub.
- Select 'Compare & pull request' on GitHub.
- Select a member of your team to review your code.
- You may add additional comments to further explain your code, but it is not necessary.
- Wait for your change to be approved to be merged into master. This can be done by yourself, but having someone else within your team do it lets us perform a code review to catch obvious errors that you may have missed.
- If you are working on another feature while you wait, repeat steps 1-8.
- If you are the code reviewer, scan over the pull request's diff. If everything looks good, merge the pull request.
- Once your change is approved, delete your branch and repeat. This ensures that your branch is up to date with master and that broken features are not submitted to master.
Create a new branch (See: step 2).Copy and paste the changes made in master to this new branch.- Create a new branch with git checkout -b ${NewBranchName}
- Checkout master again. Run git reset --hard in the terminal. This will reset the master branch to it's last commit.
- All done!
2) I'm seeing "warning: LF will be replaced by CRLF in [path]" when I try to commit or add files. What does this mean?
This stems from the way that Unix-based systems and Windows-based systems represent new lines. Unix will represent a new line as a "line feed" (CR), whereas Windows represents new lines as a "carriage return" (CR) and a "line feed" (LF). If you'd like to disable this message, just run git config --global core.safecrlf false within your console. This will disable the warnings, but not the conversion that git provides.








