This is a Next.js project bootstrapped with create-next-app
.
First, update the (.env.local) with your own purestake API-KEY, and Firebase config info
NEXT_PUBLIC_PURESTAKE_API=
NEXT_PUBLIC_FIREBASE_APIKEY=
NEXT_PUBLIC_FIREBASE_AUTHDOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECTID=
NEXT_PUBLIC_FIREBASE_STOREAGEBUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGINGSENDERID=
NEXT_PUBLIC_FIREBASE_APPID=
NEXT_PUBLIC_FIREBASE_MEASURMENTID=
TESTACCOUNT_MENMONIC=
Setup Firebase Realtime Database,
And follow instructions on [https://firebase.google.com/] on how to create Realtime Database
Create the database with this structure
Import the json files in (/firebase_example) to your firebase Realtime database
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.