Skip to content

seshchat/ass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

📱 Mock server for App / Play Store screensots

Resources

Stars

Watchers

Forks

Packages

No packages published