README.md 928 Bytes
Newer Older
1
# Item Spreadsheet to JSON
Adam Lavin's avatar
Adam Lavin committed
2

3
4
This repository contains the code used to convert the Animal Crossing: New Horizons community items
google [spreadsheet](https://docs.google.com/spreadsheets/d/13d_LAJPlxMa_DubPTuirkIV4DERBMXbrWQsmSh8ReK4/edit?usp=sharing) into JSON.
5

Iliak's avatar
Iliak committed
6
7
https://github.com/acdb-team/google-sheets-to-json

8
9
10
11
12
13
14
15
# Setup

- Visit [Google Sheets API Quickstart](https://developers.google.com/sheets/api/quickstart/nodejs)
- Click `Enable the Google Sheets API` and choose `Desktop app` as your OAuth client. Download the credentials file `credentials.json`
- Copy `credentials.json` into the root of your local copy of this repository
- Run `yarn start` to start a water that will automatically build into `build`
- Run `yarn install` to install the required node modules
- Run `node build` to export data from Google Sheets into local `out` folder
16
17
18
19

To fetch the latest data and rebuild the output file:

 - Run `yarn rebuild`