One Trial Project to get everyone Heads Up to Start
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Assuming you have 64-bit Windows
A step by step series of examples that tell you have to get a development env running
Install rails from Here
- Install rails from Here
- Install Heroku Toolbelt from Here
- Ensure you have your favourite text editor installed.
- Install Heroku Toolbelt from Here
At this point you should have all the necessary software installed
$ gem update --system 2.1.9
- You have two branches that always exist, master and develop.
- master represents the most stable version of your project and you only ever deploy to production from this branch.
- develop contains changes that are in progress and may not necessarily be ready for production.
- From the develop branch, you create topic branches to work on individual features and fixes.
- Once your feature/fix is ready to go, you merge it into develop, at which point you can test how it interacts with other topic branches that your coworkers have merged in.
- Once develop is in a stable state, merge it into master. It should always be safe to deploy to production from master.
Step by step, your workflow under this model might look like this:
- You need to fix a bug.
- Create a branch called myfix that is based on the develop branch.
- Work on the bug in this topic branch until it is fixed.
- Merge myfix into develop. Run tests.
- You discover your fix conflicts with another topic branch hisfix that your coworker merged into develop while you were working on your fix.
- Make more changes in the myfix branch to deal with these conflicts.
- Merge myfix into develop and run tests again.
- Everything works fine. Merge develop into master.
- Deploy to production from master any time, because you know it's stable.
See https://vireshdhawan.github.io/DBATCPresentation for additional steps
$ git config --global user.name "Your Name"
$ git config --global user.email [email protected]
$ git clone https://github.com/mentorbuddy/mbProject.git
$ git checkout -b topic-branch
$ <Make your Changes Now>
$ git add .
$ git commit -a -m "Your Message Here"
$ git merge topic-branch
$ git checkout master
$ git branch -d topic-branch
Unlike the -d flag, the -D flag will delete the branch even though we haven’t merged in the changes.
Explain how to run the automated tests for this system
Explain what these tests test and why
Give an example
Explain what these tests test and why
Give an example
Additional notes about how to deploy this on a live system
$ heroku login
$ git push
$ git push heroku
$ heroku run rake db:migrate
$ heroku open
Project Live on mbproject.herokuapp.com
- Ruby on Rails - The web framework used
- Viresh Dhawan - Initial work - Viresh Dhawan
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone who's code was used
- Inspiration
- etc