Rails Sample Code for a PicSafe Endpoint Server
This contains sample code for setting up an "Endpoint Server" for PicSafe (https://www.picsafe.com). It accepts reports posted from the PicSafe app and decrypts them. It is the code based used for the sample endpoint hosted at http://endpoint.picsafe.com and can be used as the basis for an institution to develop their own endpoint.
Although written in Rails, the code should reasonably easy to follow even if you are not familiar with Rails.
For detailed instructions please see: https://www.picsafe.com/integrations
Deployment for sample endpoint
- Get the sources of the app from the repo.
gem install bundlerto get bundler
bundle installto get all dependencies
cap production deploy
$ rails server -p 3000