Node.js project fetches incentive rewards data from the incentive-backend api and saves it in a CSV file. The CSV files are organized in weekly folders.
- node.js (Install from here)
- A Unix based operating system (Mac or Linux)
-
Clone the repository:
git clone https://github.com/oceanprotocol/incentives.git cd incentives
-
Install the dependencies:
npm install
-
Run the script:
npm start
scripts/
: Contains the mainfetchRewards.js
script.data/
: Where the generated CSV files will be saved.
Copyright ((C)) 2024 Ocean Protocol Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.