This project was:
- Created by following a Moralis Web3 tutorial found here.
-
Clone and install dependencies:
npm i
-
Setup ENV variables:
-
Copy
/.env-sample
as/.env
file, and enter your info for each ENV variable:-
MORALIS_APIKEY
:Can be found by logging into your Moralis account and going to the Web3 APIs page.
-
WALLET_ADDRESS
:Copy the test wallet address you want to check the balance for.
- TODO: replace this static address with a MetaMask/WalletConnect authorization. (topher)
-
-
-
Start the project in development mode:
npm run dev
-
Test your project:
- Go to
http://localhost:3000
- Test the following pages:
- Native Balance:
http://localhost:3000/native
- API Balances:
http://localhost:3000/api/balances
- Native Balance:
- Go to
In the project directory, you can run:
Starts the application in development mode (hot-code reloading, error reporting, etc).
- Open
http://localhost:3000
in your browser.
See next dev --help
for more info.
Run ESLint on every file in specified directories.
If not configured, ESLint will be set up for the first time.
See next lint --help
for more info.
Starts the application in production mode.
The application should be compiled with npm run build
(which runs
next build
) first.
See next start --help
for more info.
Compiles the application for production deployment.
See next build --help
for more info.