mempool/frontend
2022-10-13 18:09:56 +04:00
..
.tx
cypress Skip TV tests on signet 2022-07-21 22:32:15 -07:00
src Lightning pie chart i18n tooltip fix 2022-10-13 18:09:56 +04:00
.browserslistrc
.editorconfig
.eslintignore
.eslintrc Tooling: Eslint force triple equals 2022-08-23 17:05:23 +04:00
.gitignore
.prettierignore
.prettierrc
angular.json frontend: Don't copy resources to language dirs 2022-09-09 14:42:55 +02:00
cypress.config.ts
frontend
generate-config.js
mempool-frontend-config.sample.json Store and display stats and node top lists 2022-07-08 18:55:21 +02:00
package-lock.json Create world map of clearnet LN nodes and channels 2022-07-21 22:43:12 +02:00
package.json Correcting all Lightning explorer i18n and extract 2022-10-07 00:54:33 +04:00
proxy.conf.js Fix typo in kappa's PR 2139 2022-07-20 09:39:11 -05:00
proxy.conf.local.js Merge Lightning backend into Mempool backend 2022-07-08 18:55:26 +02:00
proxy.conf.mixed.js
proxy.conf.staging.js
README.md
server.run.ts
server.ts
sync-assets.js Require the resources path as input to sync assets 2022-09-27 01:14:29 +04:00
tsconfig.app.json
tsconfig.base.json
tsconfig.json
tsconfig.server.json
tsconfig.spec.json
update-config.js

Mempool Frontend

You can build and run the Mempool frontend and proxy to the production Mempool backend (for easier frontend development), or you can connect it to your own backend for a full Mempool development instance, custom deployment, etc.

Jump to a section in this doc:

Quick Setup for Frontend Development

If you want to quickly improve the UI, fix typos, or make other updates that don't require any backend changes, you don't need to set up an entire backend—you can simply run the Mempool frontend locally and proxy to the mempool.space backend.

1. Clone Mempool Repository

Get the latest Mempool code:

git clone https://github.com/mempool/mempool
cd mempool

2. Specify Website

The same frontend codebase is used for https://mempool.space, https://liquid.network and https://bisq.markets.

Configure the frontend for the site you want by running the corresponding command:

$ npm run config:defaults:mempool
$ npm run config:defaults:liquid
$ npm run config:defaults:bisq

3. Run the Frontend

Make sure to use Node.js 16.10 and npm 7.

Install project dependencies and run the frontend server:

$ npm install
$ npm run serve:local-prod

The frontend will be available at http://localhost:4200/ and all API requests will be proxied to the production server at https://mempool.space.

4. Test

After making your changes, you can run our end-to-end automation suite and check for possible regressions.

Headless:

$ npm run config:defaults:mempool && npm run cypress:run

Interactive:

$ npm run config:defaults:mempool && npm run cypress:open

This will open the Cypress test runner, where you can select any of the test files to run.

If all tests are green, submit your PR, and it will be reviewed by someone on the team as soon as possible.

Manual Setup

Set up the Mempool backend first, if you haven't already.

1. Build the Frontend

Make sure to use Node.js 16.10 and npm 7.

Build the frontend:

cd frontend
npm install
npm run build

2. Run the Frontend

Development

To run your local Mempool frontend with your local Mempool backend:

npm run serve

Production

The npm run build command from step 1 above should have generated a dist directory. Put the contents of dist/ onto your web server.

You will probably want to set up a reverse proxy, TLS, etc. There are sample nginx configuration files in the top level of the repository for reference, but note that support for such tasks is outside the scope of this project.

Translations: Transifex Project

The Mempool frontend strings are localized into 20+ locales: https://www.transifex.com/mempool/mempool/dashboard/

Translators

  • Arabic @baro0k
  • Czech @pixelmade2
  • German @Emzy
  • English (default)
  • Spanish @maxhodler @bisqes
  • Persian @techmix
  • French @Bayernatoor
  • Korean @kcalvinalvinn
  • Italian @HodlBits
  • Hebrew @Sh0ham
  • Georgian @wyd_idk
  • Hungarian @btcdragonlord
  • Dutch @m__btc
  • Japanese @wiz @japananon
  • Norwegian @T82771355
  • Polish @maciejsoltysiak
  • Portugese @jgcastro1985
  • Slovenian @thepkbadger
  • Finnish @bio_bitcoin
  • Swedish @softsimon_
  • Thai @Gusb3ll
  • Turkish @stackmore
  • Ukrainian @volbil
  • Vietnamese @bitcoin_vietnam
  • Chinese @wdljt
  • Russian @TonyCrusoe @Bitconan
  • Romanian @mirceavesa
  • Macedonian @SkechBoy