Skip to content

Enhancing the discoverability of the BASE ecosystem using Fleek Infrastructure, provides highly discoverable graph representations.

License

Notifications You must be signed in to change notification settings

HiroyukiNaito/OchainSummerDiscoveries

Repository files navigation

OCS-Discoveries (Onchain Summer Discoveries)

image

OCS-Discoveries (Onchain Summer Discoveries) focuses on enhancing the discoverability of the BASE ecosystem using Fleek Infrastructure, provides highly discoverable graph representations. As the driving force behind the Onchain Summer Registry, OCS-Discoveries emphasizes the ease of finding registered apps powered by Fleek's robust technical infrustructure. This approach effectively addresses the challenge of locating applications within the rapidly growing BASE ecosystem.

Table of Contents

Architecture

ocs-discoveries-techbackground-2

Installation

Requirements

1. Clone GitHub Repository

$ git clone git@github.com:HiroyukiNaito/OchainSummerDiscoveries.git
$ cd ./OnchainSummerDiscoveries

2. Deploying Fleek functions

  1. login to fleek
$ cd ./src/fleek-functions/
$ fleek login
  1. Deploy ecosystem-data.js to Fleek functions ecosystem-data.js is one of Fleek's functions for storing the BASE ecosystem data as an in-memory database.
$ fleek functions deploy --name ecosystem-data --path ./ecosystem-data.js 

It returns IPFS HASH with url

  1. Deploy get-graph.js to Fleek functions

get-graph.js is a query function for retrieving BASE ecosystem data for graph representation.

Change the first line to ecosystem-data.js hash value you got.

vi get-graph.js

Then deploy the edited code with --noBundle option

$ fleek functions deploy --noBundle --name get-graph --path ./get-graph.js
  1. Deploy 'get-base64data.js'

'get-base64data.js' is a key-value store for retrieving BASE ecosystem logo data as a base64 format.

$ fleek functions deploy --name get-base64data.js --path ./get-base64data.js
  1. Describe Fleek functions API URL in app.settings.ts
VALUABLE FLEEK API URL
FLEEK_API get-graph.js Fleek functions InvokeUrl
FLEEK_CACHE_API get-base64data.js Fleek functions InvokeUrl

3. Spinning up Next.js server

Development environment

$ pnpm install
$ pnpm run dev

Production environment

$ pnpm build
$ pnpm start

Strongly recommend using Fleek PaaS for running a Next.js server. It allows for easy deployment of a Next.js site.

Manual

The user manual can be kindly found in the GitBook.

Contributing

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

Credits

  • Author: Hiroyuki Naito @HiroyukiNaito
  • Maintainer: Hiroyuki Naito @HiroyukiNaito

License

Distributed under the MIT License. See LICENSE for more information.

Contacts

About

Enhancing the discoverability of the BASE ecosystem using Fleek Infrastructure, provides highly discoverable graph representations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published