- Clone or download repo.
- Navigate into project
bundle install
to install ruby dependanciesyarn install
to install node dependanciesrake db:migrate
to run all db migrations (sqlite3)gem install foremen
ensure that you have foreman installedforeman start -f Procfile.dev
to start bundle server- open
localhost:3000
in your browser
config/initializers/salesforce.rb
ensure credentials (Host: test.salesforce.com // API Version; '41.0')rails salesforce:dealers:sync
to create and update accounts from Salesforcerails salesforce:dealers:delete
to delete local accounts with those from Salesforce with isDeleted=true
rspec spec
to run all tests
app/services/salesforce/sync_dealers.rb
a Service which creates and updates salesforce dealersapp/services/salesforce/delete_dealers.rb
a Service which deletes salesforce dealers with isDeleted=trueapp/javascript/bundles/Dealers/components/*
ReactJS WebApp to list dealers on a map