3taps built a data exchange that aggregated user-generated data housed on various websites and then made that data available through this API to developers, including PadMapper and Lovely.
This project requires Redis
and MySQL
to be installed. If you are running Linux, you'd need the libmysql-client-dev
package in order to proceed with mysql2
gem installation.
- Clone a project
- Create directories missing:
mkdir log/custom
- Change directories' write permissions:
chmod -R a+rw log tmp public
- Install all the gems:
bundle install
- Create databases and set its credentials in
config/database.yml
- Set Redis config in
lib/redis_helper.rb
- Initialize database schemas:
rake db:multi:migrate DATABASE=taps
rake db:multi:migrate DATABASE=taps_payments
rake db:multi:migrate DATABASE=taps_stat
- Create postings converters:
rake db:seed
- Fill the database with locations:
rake locations:init_all
- Run an API itself with a Ruby application server of your choice (you may use developer mode Puma):
rails s
- Run delayed job supervisor:
sidekiq