Loop Pulse Application Server
meteor --settings server/settings.json
setup security settings in firebase application for receiving events
Security and Rules
tab in your firebase application. Replace the content with the following:
{
"rules": {
"workspaces": {
"$workspaceId": {
".read": false,
".write": "auth != null && auth.workspaceId == $workspaceId"
}
}
}
}
meteor shell
)Run
Meteor.call('importOrganizationsFromUrl', 'PATH TO JSON')
meteor shell
)Run
Meteor.call('createWorkspaceAndOrganizationAndUser',{name: 'workspace name', poiDescriptors: { one : 'singular', many: 'plural'} }, {name: 'org name'}, {email: 'email', password: 'pwd'})
If you have already created an organization, you could also create an invitation on meteor shell
with the following command:
Invitations.create({organizationId: YOUR_ORGANIZATION_ID, requestorId: REQUESTOR_ID, inviteeEmail: INVITEE_EMAIL})
To create an application, such as simulator and SDKs for authenticate API, you could call this in browser console.
Meteor.call("addApplication", { "name" : "mandatory", workspaceId : "mandatory", token : "optional" }, function(e,r) { console.log(r); });
Same same la,
`Meteor.call("addPoi", { workspaceId : "must", name : "must", beacon : { uuid : "must", major : "must", minor : "must" } }, function(e,r) { console.log(r); });