The UNO Classifieds application runs on Ruby version 2.3.3
. Please note this before continuing.
The basic steps will be:
- Install Ruby
- Install Bundler
- Install gem dependencies
- Run the application
To install ruby on Windows the recommended procedure is to use the ruby_installer which you can download here.
After downloading, double click the exe in order to install ruby.
Next you must install the Development Kit which you can download here.
After downloading move the Development Kit into your home directory and double click to install it. Next open Powershell and run the following commands:
cd $home
ruby dk.rb init
ruby dk.rb install
gem install bundler
Now navigate to this project's directory in Powershell.
bundle install
rails s
Navigate to localhost:3000
in your favorite web browser!
Done!
To install Ruby on a Unix machine the recommended procedure is to use RVM.
Open a terminal an run the following commands:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
# There will be some output about sourcing a file to make RVM work in the current shell copy, paste, and run the source command
rvm install ruby 2.3.3
gem install bundler
Now navigate to this project's directory in your terminal.
bundle install
rails s
Navigate to localhost:3000
in your favorite web browser!
Done!
For help installing Docker please refer to the installation docs.
Navigate to this project's directory in either your terminal or Powershell.
docker build .
# The command above will output a container ID that you can run.
docker run -it -p 3000:3000 <THE ID FROM ABOVE>
Navigate to localhost:3000
in your favorite web browser!
If this isn't working run docker-machine env
to get the ip of the host machine and navigate to that IP at 3000.
Done!
We use RSpec for our unit tests. Running your test couldn't be simplier!
bundle exec rspec