Before starting the development server, you need to set up the environment variables. Create a .env
file in the root directory of this project. You can take reference from the .sample.env
file which looks like this:
NEXT_PUBLIC_NETWORK=goerli
NEXT_PUBLIC_API_BASE_URI=https://goerli-api.facet.org
If you decide to clone the facet-vm
repo and get the API running on your local machine, replace https://goerli-api.facet.org
in the .env
file with your localhost URL.
Once the environment is set up:
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
To learn more about this stack, take a look at the following resources:
- Facet Documentation - Learn how to create dumb contracts.
- Facet Discord - Join our community of builders!