A client library for the Purpose Platform
-
Create a new rails application for the movement using:
$ rails new movement_name --skip-active-record --builder='<path-to-porpoise-movement-builder>' --movement_password='movement-password'
- for path-to-porpoise-movement-builder, specify the path to movement_builder.rb file (found in lib/porpoise directory) or the github raw url of the file.
- skip-active-record option is used as we dont require database for this project.
- builder adds the porpoise library to the rails project and also creates the required configuration files.
- Movement specific constants ( movement_name, movement_id, movement_password ) have to be passed as options.
-
Create your movement in the Platform admin (with the same name you used above)
-
Start the rails server:
$ cd movement_name; source .env; rails s
The new movement now runs at rails default port 3000. (http://localhost:3000)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request