responsively-app/server
2019-10-29 08:13:10 +05:30
..
.vscode Initial Project setup 2019-09-07 00:45:06 +05:30
src mail changes 2019-10-26 20:13:45 +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
environment-dev.yml mail changes 2019-10-26 20:13:45 +05:30
environment-prod.yml prod env 2019-10-29 08:13:10 +05:30
environment.yml mail changes 2019-10-26 20:13:45 +05:30
package.json prod env 2019-10-29 08:13:10 +05:30
README.md API signature added. 2019-09-07 20:36:39 +05:30
serverless.yaml prod env 2019-10-29 08:13:10 +05:30
setCreds.sh Creds file 2019-09-07 00:48:45 +05:30
sls-webpack.config.js lambda updates 2019-09-09 22:40:04 +05:30
yarn.lock Added action field to the response message 2019-09-15 16:53:47 +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>
}