A SalesKing app to import csv files. As a starting point you can import clients given as csv f.ex exported from Outlook.
The app is build with Rails 3.1 on Ruby 1.9.2 and a mysql & postgres backend. It uses oAuth2 and has a canvas integration, so a user can use it inside SalesKing.
-
Register a new app to get an app-id & secret in your SalesKing account.
- Set a unique CANVAS SLUG so it can be reached inside salesking.eu/app/my-import
- Set the Canvas URL to http://MY-URL.local/login <- /login receives the auth POST when a user opens the app in sk/app/my-import
-
Checkout this repo, copy and edit salesking_app.yml & database.yml.
bundle install bundle exec rake db:migrate bundle exec rails s
-
Go into SalesKing at /app/your-canvas-slug
The app is deployed by us on Heroku and you can do it too. The only problem to be solved is the creation of the salesking_app.yml keeping the app key & secret. Instead of using Heroku's env_vars you should use a separate local git branch where you add the ignored salesking_app.yml file:
# create a new branch
git checkout production
[create salesking_app.yml, remove from .gitignore and commit]
git merge master
git push heroku production:master
# change back to master branch for normal edits .. DON'T merge production into master
git checkout master
DON'T FORGETT: never push production to your public branch, if you do you need to setup NEW app credentials
Run specs with
bundle exec rake spec
Test coverage report is created by simpleCov and available after running the specs
Copyright (c) 2011 Georg Leciejewski, released under the MIT license