A Next.js web app that allows you to explore Oval3 cards by their owners, view their stats, game week score, and filter them based on various criteria.
Explore the docs »
View Website
·
Report Bug
·
Request Feature
Table of Contents
The web app is a simple way to explore the Oval3 cards by their owners. You can filter the cards by their stats, and see the cards' details by clicking on them. It use a JSON file to store the cards and owners datas created by the scripts in the ./scripts
folder. Some datas can be wrong or missing due to the way the scripts are working. You can find a further explanation in this article: English / French.
To get a local copy up and running follow these simple steps.
- Next.js: follow the official documentation to install Next.js
-
install the dependencies
pnpm install
-
Set the ENV variables
cp .env.example .env.local
Then fill the
.env.local
file with the required variables -
Run the development server
pnpm next dev
-
Open http://localhost:3000 with your browser to see the result.
In the ./scripts
folder, you can find some scripts to get the cards by address and save them in a JSON file.
./scripts/GetOwners.ts
will get the owners of the cards and save them in a JSON file one time.cd scripts tsc GetOwners.ts node GetOwners.js cp data.json ../utils/datas/owners.json
./scripts/TransferListener.ts
will listen to the transfer events and save the cards in a JSON file every time a transfer event is detected. (It will update data.json, not owners.json)cd scripts tsc TransferListener.ts node TransferListener.js
- In
.env.local
setDATA_SOURCE
toJSON
.
The app can use a database to store the datas, you can find the scripts to fill the database in this repository: https://github.com/ereynier/oval3-Owners
- In
.env.local
setDATA_SOURCE
toDB
.
Go on the application URL and enter the address you want to check. You can also use the filters to find the cards you want to see.
Here's a short list of addresses with cards:
- 0xBbBfc940ddF3222Cd01168D838dFA2cDe78947D3
- 0xBDb1c31b8e8e61E85Bb5F3efD56e992e7E50af3e
- 0x6a8319C56707a0d9E6F1e44cD277757aE5562835
For a more detailed example, check the demo video
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Estéban Reynier - @EstebanReynier - esteban@ereynier.me
Project Link: https://github.com/ereynier/Oval3-viewer