You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,12 @@ Sub item is in the same line as the unordered main item.
102
102
103
103
3. Create a `.env` file from the `.env.example` file. Replace `EXCEL_FILENAME` with a target excel file's filename relative to the `/src/01_recommendations` directory.
104
104
105
-
4. See the excel parser script's example usage on<br>
| EXCEL_FILENAME | Excel file name relative to the `/src/01_recommendations` scripts directory |
108
+
| CSV_FILENAME | CSV file name relative to the `/src/02_crop_calendar` scripts |
109
+
| FIREBASE_SERVICE_ACC | The project's private key file contents, condensed into one line and minus all whitespace characters.<br><br>The service account JSON file is generated from the Firebase project's **Project Settings** page, on **Project Settings** -> **Service accounts** -> **Generate new private key**|
110
+
| FIREBASE_PRIVATE_KEY | The `private_key` entry from the service account JSON file.<br> <blockquote>**NOTE:** Take note to make sure that the value starts and ends with a double-quote on WINDOWS OS localhost. Some systems may or may not require the double-quotes (i.e., Ubuntu).</blockquote> |
107
111
108
112
## Available scripts
109
113
@@ -115,11 +119,17 @@ Check source codes for lint errors.
115
119
116
120
Fix lint errors.
117
121
118
-
### `npm run parse`
122
+
### `npm run process:recommendations`
119
123
120
-
Normalize an unconventional, complex excel file into an array of simple JS objects with columns containing messy (ordered and unordered) bullet lists converted into organized HTML list tags.
124
+
Normalize an excel file into an array of simple JS objects with columns containing messy HTML tags bullet lists.
121
125
122
-
> **WARNING:** The script does not support `-` (dash) symbols.
126
+
### `npm run process:calendar`
127
+
128
+
Normalize and upload the new cropping calendar data.
129
+
130
+
### `npm run process:details`
131
+
132
+
Normalize and upload the new municipalities and other details attached to the crop recommendations.
0 commit comments