Setting Up Light Grill Locally
This section covers the steps for setting up Grill locally, and the environment variables that need to be added.
Local development environment setup
- Fork the Light Grill app on your GitHub
- Clone the repository locally
- Rename
.env.example
file to.env
- Run
yarn && yarn dev
to run the project locally
Understanding environment variables
Name | Description | Required? |
---|---|---|
SERVER_MNEMONIC | The wallet mnemonic of the server, in order to automatically send users Energy | Yes |
CAPTCHA_SECRET | ReCaptcha secret, read here for more information. | Yes |
NEXT_PUBLIC_CAPTCHA_SITE_KEY | ReCaptcha sitekey | Yes |
NEXT_PUBLIC_MORALIS_API_KEY | API key to fetch NFT metadata from Moralis. Get your own API key here. | No |
NOTE: We have already created an example environment file for you for local development. You can rename the file and run the app locally.