Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seshchat/ass

📱 Mock server for App / Play Store screensots
https://github.com/seshchat/ass

Last synced: 3 months ago
JSON representation

📱 Mock server for App / Play Store screensots

Awesome Lists containing this project

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
```bash
npm i -g @seshchat/ass
```
```bash
yarn global add @seshchat/ass
```

## Usage
Create an `Assfile.json` containing information about your mock server. Here's an example:
```json
{
"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:
```bash
ass ./Assfile.json
```