Bin of Parts is built using the Ruby on Rails framework.
If you would like to contribute to this project please follow these setup instructions below.
A Vagrantfile is provided to smooth the development setup process. To use the preconfigured Virtual Machine you will have to install VirtualBox and Vagrant.
Install VirtualBox
Install Vagrant
- Clone fork to local computer
git clone https://github.com/USERNAME/binofparts.git
- Navigate to root directory.
cd binofparts
- Setup the VM.
vagrant up
- SSH Into the VM.
vagrant ssh
- Change to project root directory.
cd /binofparts
- Install project dependencies.
bundle
- Setup the database.
rake db:setup
- Start local Rails Server.
rails s
- You're good to go! You can access the site at localhost:3000
Warning: Make sure to replace USERNAME with your github username when cloning
The project is tested using rspec and capybara, along with factorygirl for factories. It is already setup to use Guard-rspec. This way you can use guard to automatically detect any changes to specs and run the tests for you.
To run guard:
- startup the vagrant vm
vagrant up
- ssh into the box
vagrant ssh
cd /binofparts
- run guard with polling enabled
bundle exec guard -pc
TIP: If running guard uses to much of your cpu you can limit cpu usage. Add the -l 10
flag onto the end of the guard command.