📁
filecoin.loans
  • Introduction
  • Protocol
    • Lend FIL - ERC20 Tokens as Collateral
    • Lend ERC20 Tokens - FIL as Collateral
  • Develop
    • Requirements
    • Quickstart Guide
      • Setting up the Hardhat node
      • Running the server
      • Running the app
      • Setting up Metamask
  • Reference guide
    • Filecoin Loans Contracts
      • Interfaces
        • IBLAKE2b
        • IERC20
        • IPriceAggregator
      • Contracts
        • ERC20CollateralLock
        • ERC20Loans
    • API Reference
      • operation
        • FIL - ERC20 loan operations
        • ERC20 - FIL loan operations
      • loanAssets
      • protocolContracts
      • orders
      • loan
      • loans
      • notification
      • activity
  • Tools
    • filecoin-js-signer
      • API Reference
        • FilecoinSigner
          • msig
          • paych
          • tx
          • wallet
        • FilecoinClient
          • msig
          • paych
          • tx
          • wallet
      • Develop Guide
      • Credits and references
Powered by GitBook
On this page
  • Setting up the environment variables
  • Installing dependencies
  • Starting the app

Was this helpful?

  1. Develop
  2. Quickstart Guide

Running the app

Actions described here are executed in the web/app_src module.

Setting up the environment variables

Create a .env file with the schema of the .env.example file.

SKIP_PREFLIGHT_CHECK=true
PORT="app_port"
REACT_APP_SERVER_HOST="http://app_host:app_port"
REACT_APP_FIL_ENDPOINT="lotus rpc url"
REACT_APP_FIL_TOKEN="lotus rpc token"
REACT_APP_API_HOST="http://api_host:api_port/api/"
REACT_APP_API_PRICES="wallet api url"

Do not add this file to the control version system

Installing dependencies

$ npm install

Starting the app

$ npm run start

A server should be started at the defined port.

PreviousRunning the serverNextSetting up Metamask

Last updated 4 years ago

Was this helpful?