Skip to content

phyman/Porpoise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Porpoise

A client library for the Purpose Platform

Build Status

Creating a new movement

  1. 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.
  2. Create your movement in the Platform admin (with the same name you used above)

  3. Start the rails server:

    $ cd movement_name; source .env; rails s

The new movement now runs at rails default port 3000. (http://localhost:3000)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A client library for the Purpose Platform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published