diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-20 09:14:44 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-20 09:14:44 +0800 |
commit | b799a8a108646fc097595291b4697976f6a0d25c (patch) | |
tree | e346b4fda8c95089cf798d5d3e693cf3c34d8f9b | |
parent | 3d6c0b75a1583838873c04b03a5f410804960220 (diff) | |
download | dexon-0x-contracts-b799a8a108646fc097595291b4697976f6a0d25c.tar.gz dexon-0x-contracts-b799a8a108646fc097595291b4697976f6a0d25c.tar.zst dexon-0x-contracts-b799a8a108646fc097595291b4697976f6a0d25c.zip |
Flesh out main repo README
-rw-r--r-- | README.md | 62 |
1 files changed, 62 insertions, 0 deletions
@@ -40,3 +40,65 @@ This repository contains all the 0x developer tools written in TypeScript. Our h | [`@0xproject/kovan_faucets`](/packages/kovan-faucets) | A faucet micro-service that dispenses test ERC20 tokens or Ether | | [`@0xproject/monorepo-scripts`](/packages/monorepo-scripts) | Shared monorepo scripts | | [`@0xproject/website`](/packages/website) | 0x website & Portal DApp | + +## Usage + +Dedicated documentation pages: +- [0x.js Library](https://0xproject.com/docs/0xjs) +- [0x Connect](https://0xproject.com/docs/connect) +- [Smart contracts](https://0xproject.com/docs/contracts) +- [Standard Relayer API](https://github.com/0xProject/standard-relayer-api/blob/master/README.md) + +## Contributing + +We strongly encourage the community to help us make improvements and to determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository. + +Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started. + +### Install dependencies + +If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them: +```bash +yarn config set workspaces-experimental true +``` + +Then install dependencies +```bash +yarn install +``` + +### Build + +Build all packages + +```bash +yarn lerna:run build +``` + +### Lint + +Lint all packages +```bash +yarn lerna:run lint +``` + +### Run Tests + +Before running the tests, you will need to spin up a [TestRPC](https://www.npmjs.com/package/ethereumjs-testrpc) instance and deploy all the 0x smart contracts. + +In a separate terminal, start TestRPC (a convenience command is provided as part of this repo) +```bash +yarn testrpc +``` + +Then in your main terminal run +``` +cd packages/contracts +yarn run migrate +cd .. +``` + +And finally from the root project directory run +```bash +yarn lerna:run test +``` |