Ten Best in San Fransisco Application was written in ruby on rails back end and bootstrap3 + jQuery front end using Google Map API, Google Place Search API, Google Photo API.
-
Ruby version
- ruby 2.3.1
-
System dependencies
- rails 5.0.0
- sass-rails 5.0
- postgresql (production environment)
- sqlite3 (development environment)
- Read Gemfile for the more...
-
Configuration
- Smtp mail configuration:
config/secrets.yml
mailer_user: xxx@gmail.com
mailer_pass: xxxxxxx - Google map and Place configuration:
config/secrets.yml
google_map_key: xxxxxxx-xxxx
google_place_key: xxxxxxx-xxxx
google_photo_key: xxxxxxx-xxxx - Social share button configuration:
config/initializer/social_share_button.rb
config.allow_sites = %w(xxx xxxxx xxxxx)
ex: facebook, twitter...
- Smtp mail configuration:
-
Database creation & initialization
- local:
>> rails db:migrate
- heroku:
>> heroku run rake db:migrate
- local:
-
How to run the test suite
-
Test app:
>> rails test
Running via Spring preloader in process 35879
Started with run options --seed 30263logo/16: [===================== ] 64% Time: 00:00:13, ETA: 00:00:08 logo/18: [======================== ] 72% Time: 00:00:16, ETA: 00:00:06 logo/22: [============================= ] 88% Time: 00:00:17, ETA: 00:00:03 logo/23: [=============================== ] 92% Time: 00:00:19, ETA: 00:00:02 25/25: [=================================] 100% Time: 00:00:21, Time: 00:00:21 Finished in 21.60776s 25 tests, 35 assertions, 0 failures, 0 errors, 0 skips
-
IndexController:
>> rails test test/controllers/index_controller_test.rb
>> ....
>> Finished in 1.616466s, 2.4745 runs/s, 4.9491 assertions/s.
>> 4 runs, 8 assertions, 0 failures, 0 errors, 0 skips -
Test Models:
>>rails test:models
>>...
>>Finished in 0.438195s, 27.3851 runs/s, 27.3851 assertions/s.
>>12 runs, 12 assertions, 0 failures, 0 errors, 0 skips
-
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...