- Overview
- Repository layout
- Instructions
NEM and Symbol faucet frontend is a simple web application build on NextJS framework. It allows a user to enter an address and an amount in order to request XEM or XYM tokens from the faucet.
Folder Name | Description |
---|---|
/app | Contains the primary layout and pages for the application. |
/components/common | Contains shared components utilized across both the NEM and Symbol faucet of the application. |
/components/nem | Contains the components specifically designed for the NEM faucet web page. |
/components/symbol | Contains the components specifically designed for the Symbol faucet web page. |
/scripts | Jenkins ci scripts |
/utils | Collection of utility functions. |
- Clone the project.
git clone https://github.com/symbol/product.git
- Install the required dependencies.
cd faucet/frontend
npm install
- Create
.env
in frontend/ root directory, all balance and amount in absolute units.
NEXT_PUBLIC_BACKEND_URL=http://127.0.0.1:5001
NEXT_PUBLIC_AUTH_URL=http://127.0.0.1:5002
For NEM Faucet set:
NEXT_PUBLIC_BUILD_TARGET=nem
For Symbol Faucet set:
NEXT_PUBLIC_BUILD_TARGET=symbol
- Start application.
npm start
- Visit http://localhost:3000/#/ in your browser.
npm run test
lint comment use for all file in src.
npm run lint
npm run lint:fix