Skip to content

Commit

Permalink
doc: how to test on local
Browse files Browse the repository at this point in the history
  • Loading branch information
decryp2kanon committed Jun 15, 2020
1 parent 0140999 commit c39d7c0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,26 @@ Join the translation efforts on [Transifex](https://transifex.com/blockstream/es

- Mainnet, Testnet and Elements high performance electrum server

## Sugarchain Testing

To start on local machine, you may do, run:

```bash
$ git clone https://github.com/sugarchain-project/esplora.git && cd esplora
$ npm install
$ npm run dist sugar-mainnet # (or sugar-testnet)
# change URL in `flavors/sugar-testnet/config.env`:
# export BASE_HREF=${BASE_HREF:-'/esplora-testnet/'}
# change "/esplora/" to "/" for local testing
# if you want to host on github pages: `/esplora-testnet/` for `https://sugarchain-project.github.io/esplora-testnet/`
$ cd dist
$ python3 -m http.server
```

*Warning: `BASE_HREF` will be hardcoded. If your URL is changed, you have to change in `config.env`.*

The server will be available at http://localhost:8000/

## Developing

To start a development server with live babel/browserify transpilation, run:
Expand Down

0 comments on commit c39d7c0

Please sign in to comment.