Skip to content

Commit

Permalink
Merge pull request #2 from lnmarkets/v0.0.3
Browse files Browse the repository at this point in the history
V0.0.3
  • Loading branch information
kibotrel authored Sep 23, 2021
2 parents 357e489 + 856a8e0 commit 5e5b128
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN yarn config --silent set cache-folder .yarn && \
FROM node:14.17-alpine

ENV NODE_ENV="production"
ENV APP_VERSION=0.0.1
ENV APP_VERSION=0.0.3
ENV API_PORT=4242
ENV BITCOIN_NETWORK="mainnet"
ENV LNMARKETS_API_URL="https://api.lnmarkets.com"
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ This environment is linked to the **testnet** version of LN Markets.
### Setting up the app:

```shell
$> cd dev/infra ; docker-compose up -d
$> cd .. docker-compose up -d
$> yarn workspace dev start
```

After launching `infra` for the first time, `bitcoin-testnet` container might takes several minutes to sync to the current state of the bitcoin testnet blockchain. During this time you can start interacting with `lnmarkets_umbrel_lnd` to setup your wallet and channels with LN Markets.
Expand Down
2 changes: 1 addition & 1 deletion apps/front/src/store/futures/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export default {
},

computePL: (state) => {
return state.running.reduce((a, b) => ({ pl: a.pl + b.pl })).pl
return state.running.reduce((a, b) => ({ pl: a.pl + b.pl }), { pl: 0 }).pl
},
}
12 changes: 12 additions & 0 deletions dev/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "dev",
"version": "1.0.0",
"description": "Easy access to dev commands",
"main": "index.js",
"author": "BOTREL Kilian",
"license": "MIT",
"scripts": {
"start": "cd infra && docker-compose up -d ; cd .. ; docker-compose up -d",
"stop": "docker-compose down ; cd infra ; docker-compose down"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"workspaces": [
"apps/api",
"apps/front"
"apps/front",
"dev"
],
"dependencies": {
"dotenv": "^10.0.0"
Expand Down

0 comments on commit 5e5b128

Please sign in to comment.