Spoing Infotech Take-Home Technical Test
You will need the following things properly installed on your computer.
Clone the repository or download and uncompress the code
$ git clone git@github.com:warrenchaudhry/pug_test.git
$ cd pug_test
- Install the Rubygems dependencies
$ bundle install
It is highly recommended for you to use a virtual environment with user-based libraries instead of system-based. Check out https://rvm.io, for example.
- Create database and migration.
$ rails db:create
$ rails db:migrate
- Seed the tables
$ rails db:seed
- The project should work from here on, but if it has been updated with new dependencies, pull the code again, and run
$ bundle install
- Run the tests
$ rake
- Start the application
$ rails s
- Visit your application at http://localhost:3000
Once the application is running, you can access the application with the following data.
There should be given users:
Type | |
---|---|
juandelacruz@email.com | Administrator |
juanitadelacruz@email.com | Paying Customer |
juanitodelacruz@email.com | Free Customer |
For each account, password is password1234
- Darwin 14.5.0
Darwin Kernel Version 14.5.0: Mon Aug 29 21:14:16 PDT 2016; root:xnu-2782.50.6~1/RELEASE_X86_64 x86_64
- Ruby
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14]
- Rails
5.0.0.1
- Gem
2.6.7
- Bundler
Bundler version 1.13.2