responsively-app/server
2019-09-07 20:36:39 +05:30
..
.vscode Initial Project setup 2019-09-07 00:45:06 +05:30
src/websocket Initial Project setup 2019-09-07 00:45:06 +05:30
.gitignore Initial Project setup 2019-09-07 00:45:06 +05:30
.prettierrc Initial Project setup 2019-09-07 00:45:06 +05:30
package.json Initial Project setup 2019-09-07 00:45:06 +05:30
README.md API signature added. 2019-09-07 20:36:39 +05:30
serverless.yaml Initial Project setup 2019-09-07 00:45:06 +05:30
setCreds.sh Creds file 2019-09-07 00:48:45 +05:30
sls-webpack.config.js Initial Project setup 2019-09-07 00:45:06 +05:30
yarn.lock Initial Project setup 2019-09-07 00:45:06 +05:30

Responsively Server

Dev Deployment

To deploy the app, edit the AWS credentials in the setCreds.sh file and run the following commands:

source ./setCreds.sh
yarn run deploy

Rest APIs

Activate trial

Description: To activate a trial user Request: GET Endpoint: /activate-trial QueryParams:

{
  email: <email-id>
}

Response:

{
  status: <true|false>,
  errorType: <error-code>
}

Sample: /activate-trial?email=suresh@gmail.com

Buy License

Will have to figure out how to send the request after making a payment.

Websocket Messages

Validate License

Message body:

{
  action: "VALIDATE",
  body: {
    licenseKey: "abcdefghijklmopqr",
  }
}

Reply body:

{
  valid: <true|false>
}