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.
- npm package manager
- Fleek CLI
$ git clone git@github.com:HiroyukiNaito/OchainSummerDiscoveries.git
$ cd ./OnchainSummerDiscoveries
- login to fleek
$ cd ./src/fleek-functions/
$ fleek login
- Deploy
ecosystem-data.js
to Fleek functionsecosystem-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
- 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
- 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
- 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 |
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.
The user manual can be kindly found in the GitBook.
- Fork the project.
- Create your feature branch (git checkout -b feature/AmazingFeature).
- Commit your changes (git commit -am 'Add some feature').
- Push to the branch (git push origin feature/AmazingFeature).
- Open a pull request.
- Author: Hiroyuki Naito @HiroyukiNaito
- Maintainer: Hiroyuki Naito @HiroyukiNaito
Distributed under the MIT License. See LICENSE for more information.
- Email: hiroyukinait.eth@gmail.com
- X: @hnaito_eth
- Warpcast: @hiroyukinaito