# marketplace-testbed

> A test platform for Scatter Marketplace

Latest version **1.0.5** (published 2019-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install marketplace-testbed
pnpm add marketplace-testbed
yarn add marketplace-testbed
bun add marketplace-testbed
```

Provides the command `marketplace-testbed`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-08-14 |
| First published | 2019-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 470.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | GetScatter Ltd. |
| Maintainers | andresberrios |
| Keywords | eosio, scatter, marketplace, test |

## Links

- npm: https://www.npmjs.com/package/marketplace-testbed
- Repository: https://github.com/GetScatter/marketplace-testbed
- Homepage: https://github.com/GetScatter/marketplace-testbed#readme
- Issues: https://github.com/GetScatter/marketplace-testbed/issues
- npm.io page: https://npm.io/package/marketplace-testbed

## Dependencies (5)

- [eosup](https://npm.io/package/eosup.md) ^1.1.4
- [casual](https://npm.io/package/casual.md) ^1.6.2
- [express](https://npm.io/package/express.md) ^4.17.1
- [json-server](https://npm.io/package/json-server.md) ^0.15.0
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^3.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-08-14
- 1.0.4 — 2019-08-14
- 1.0.3 — 2019-08-13
- 1.0.2 — 2019-08-07
- 1.0.1 — 2019-08-07
- 1.0.0 — 2019-08-07

## README

# marketplace-testbed

This package provides a platform for testing the Scatter Marketplace
system. It contains:

- A local EOSIO testnet loaded with:
  - The SimpleAssets contract.
  - The dGoods contract.
  - The Scatter Marketplace contract.
  - Generated fake data for each of these contracts.
- An HTTP server that mimics the basic data routes present in the
  Scatter Marketplace API filled with fake data.

## Usage

### From the Git repository

If you clone this repository, you can simply run `npm install` and then
`npm start` to start up the testbed (mock server + testnet).

### As an npm package

Add this package as a `devDependency` of yours with:

```sh
npm install -D marketplace-testbed
```

You can then start it using the binary provided:

```sh
npx marketplace-testbed
```

or in your `package.json` scripts:

```json
"scripts": {
  "testbed": "marketplace-testbed",
  "just-server": "marketplace-testbed server",
  "just-testnet": "marketplace-testbed testnet"
}
```

## Mocha lifecycle hooks

You can use the provided `before`/`after` hooks for your mocha test suites
by prepending their file to the rest of your tests:

```sh
mocha node_modules/marketplace-testbed/dist/mocha.js "test/**/*.spec.js"
# or, just mock server:
mocha node_modules/marketplace-testbed/dist/mocha-server.js "test/**/*.spec.js"
# or, just testnet:
mocha node_modules/marketplace-testbed/dist/mocha-testnet.js "test/**/*.spec.js"
```

---
_Source: https://npm.io/package/marketplace-testbed · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
