@seshchat/ass

Mock server for App / Play Store screenshots

Usage no npm install needed!

<script type="module">
  import seshchatAss from 'https://cdn.skypack.dev/@seshchat/ass';
</script>

README

Ass

Ass creates a mock REST server for your app to communicate with to fake its state for App Store / Play Store / whatever

Installation

npm i -g @seshchat/ass
yarn global add @seshchat/ass

Usage

Create an Assfile.json containing information about your mock server. Here's an example:

{
  "name": "SESH",
  "port": 4000,

  "options": [{
    "name": "Onboarding",
    
    "endpoints": [{
      "method": "POST",
      "endpoint": "/graphql",

      "statusCode": 200,
      "body": {
        "hello": "world"
      }
    }]
  }, {
    "name": "Chat",

    "endpoints": [{
      "method": "POST",
      "endpoint": "/graphql",

      "statusCode": 200,
      "body": {
        "hello": "world",
        "x": 0
      }
    }]
  }]
}

Then start the Ass server:

ass ./Assfile.json

The server will automagically be updated on Assfile save :~)