Skip to content

Latest commit

 

History

History

app

Sports Prediction Game: Frontend

This directory is a Next.js project bootstrapped with create-next-app.

It contains the frontend for the sports prediction game and additional backend for data aggregation and server side rendering.

Quick Start

Install all dependencies:

npm install

Set environment variables by copying .env.example to .env and filling in the values:

  • NEXT_PUBLIC_ALCHEMY_API_KEY for the network you want to use. You can get one from Alchemy.
  • NEXT_PUBLIC_WALLET_CONNECT_ID for the wallet connector. You can get one from WalletConnect by going to WalletConnect Cloud.
  • NEXT_PUBLIC_CONTRACT_ADDRESS for the deployed game contract address.
  • API_KEY for the sports data API. Obtain one here.

Run npm run dev in your terminal, and then open localhost:3000 in your browser.

Tech Stack