Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Merge #91
Browse files Browse the repository at this point in the history
91: Adds event-store setup needed for Clarity/Cypress r=zie1ony a=George-cl

#

Co-authored-by: George <[email protected]>
  • Loading branch information
bors[bot] and George-cl authored Jan 15, 2021
2 parents 8ef0215 + 50e4aa1 commit d646985
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,26 @@ After cloning the repo `cd` to the root of the clarity dir and run:
```
yarn install // Installs dependencies
yarn build // Builds components from packages
yarn dev // Run Clarity on your localhost
```
If you want to run the **Cypress** test suite you will first need to have a local network running. The easiest way to do this is using [nctl](https://github.com/CasperLabs/casper-node/tree/master/utils/nctl), follow the docs there to get a simple network going on your local machine to test Clarity against.
You should then spin up an [nctl](https://github.com/CasperLabs/casper-node/tree/master/utils/nctl) network of nodes locally to run Clarity against.

Now that the packages and network are ready you will need 3 terminals to get it all working:
```
// Terminal A
cd packages/event_store
rm development_sqlite.db // Wipe old data
npm run start-web-server // Start event-store
// Terminal B
npm run start-event-handler // Start processing event-stream
// Terminal C
cd ../../
yarn dev // Start local Clarity instance
```

If you want to run the **Cypress** test suite you will then need one more terminal and run one of the following:

Once you have a network running, start Clarity using `yarn dev` and run one of the following:
```
yarn cypress:dev // Opens the Cypress GUI and holds the test window open on
completion of the suite.
Expand Down

0 comments on commit d646985

Please sign in to comment.