rvm install 2.0.0-p247
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew update && brew install mongodb
Open up a terminal (terminal.app on OSX) and input the following:
git clone git@github.com:Gowiem/Sisyphus.git
cd Workspace/Sisyphus
rvm --rvmrc --create 2.0.0-p247@sisyphus
bundle install
rails server
or rails s
for shortOnce you've gotten all of the above working and you've been able to check out the site at localhost:3000 you'll only need to do the following two things to get the server running again.
cd ~/Workspace/Sisyphus && git pull origin master
mongod
cd ~/Workspace/Sisyphus && rails server
Note: Above I refer to '~/Workspace/Sisyphus' as the directory where you cloned the project. This may be different depending on where you did git clone ...
.
Now that we're user testing our project we need the project to start off in a blank state for our testers. To do that do the following:
Open a new tab in your terminal and naviagate to the project. Ex. cd ~/Workspace/Sisyphus/
Run the rake task to reseed the database: bundle exec rake extra_seed:scenario1
Once the user has run through the first scenario then you can run the second rake task: bundle exec rake extra_seed:scenario2
Finished with testing and want to get back to using the project locally with your own email? Either run bundle exec rake extra_seed:sisyphus
(will keep Janet Orange, Bill Banana, and gang around) or bundle exec rake db:reset
(Resets the database so only our team is available)
User login info:
Once you're all setup you can run the following command from the root directory of the project to populate your local database with seed data:
rake db:reset
Check out 'db/seeds.rb'. It's just a simple ruby file which you can probably figure out by looking at it and change it depending on what you want. If you change something however make sure to run rake db:reset
again as this will populate your changes.
Note: all of these are fairly obvious as of right now, please feel free to add your own resources/tools here.
Important Gems/Libraries we're using:
Ember, Ember-Data, Rails Example Apps:
Random: