Skip to main content

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

NameDescriptionRequired?
SERVER_MNEMONICThe wallet mnemonic of the server, in order to automatically send users EnergyYes
CAPTCHA_SECRETReCaptcha secret, read here for more information.Yes
NEXT_PUBLIC_CAPTCHA_SITE_KEYReCaptcha sitekeyYes
NEXT_PUBLIC_MORALIS_API_KEYAPI 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.