This repository contains code for a Google Cloud Function that fetches CSV files from the NWEA MAP API and uploads them to a Google Cloud Storage bucket.
In NWEA MAP...
- Click on View Reports > MAP Growth Reports
- Click on Data Export Scheduler > schedule a data export
- Enable Data Export Scheduler
- Set Frequency to Daily
- Select a preferred Export Type (Comprehensive is recommended)
- Select your preferred options under Contents
- Click Save
The deploy.sh
file handles all steps necessary to deploy the Cloud Function. This involves creating a service account, Secret, and Cloud Storage bucket. A Cloud Scheduler job is also created to trigger the Cloud Function nightly causing the CSV files in the Cloud Storage bucket to always represent current assessment term data as of the previous day.
Navigate to your Google Cloud project and activate Cloud Shell. Run the commands below:
git clone https://github.com/xmarcosx/nwea-map-etl.git;
cd nwea-map-etl;
cp .env-prod .env;
Complete the .env file by filling in your NWEA MAP username and password.
bash deploy.sh