Rise In Logo



Learn everything about Chiliz

In this lesson we are gonna learn how to create ENV.

Step 1: Get Moralis API Key

We need to sign up and get an API key.

  • To do that let’s go to here and create a free account.
  • Once we login to our new account, it will ask us to create a project (which can be named whatever you want).
  • Navigate to your project’s Settings > Secrets, and copy the API key from Web3 API Key - Default.

Step 2: Create a new file called .env.local

gif

In the provided template (GitHub Link), there is a .env.local.example file, in the root of our application. Next to this .env.local.example file, let's create a new file called .env.local (at the same level as src, not inside src)

Step 3: Fill .env.local

We are going to fill content similar to .env.local.example. We need 3 things to include in our .env.local.

  • NEXT_PUBLIC_MORALIS API_KEY: Once you login, Navigate to your project’s Settings > Secrets, and copy the value from Web3 API Key - Default.
  • NEXT_PUBLIC_APP_DOMAIN: can get from .env.local.example
  • NEXT_PUBLIC_BASE_URL: can get from .env.local.example

Comments

You need to enroll in the course to be able to comment!

Stay in the know

Never miss updates on new programs and opportunities.

Rise In Logo

Rise together in web3!

Disclaimer: The information /programs / events provided on https://patika.dev and https://risein.com are strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice and do not make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://patika.dev and https://risein.com disclaim any responsibility for financial decisions made by users based on information provided here.