SPDP Data Scraper
$ npm install
# spin up database
docker-compose up -d
# apply migrations
npx prisma generate
npx prisma migrate deploy
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# run scraper for specific district
curl --location 'http://localhost:3000/data-scraper/scrapeDataForDistrict' \
--header 'Content-Type: application/json' \
--data '{
"districtLGDCode": "344"
}'
# run scraper for all districts
curl --location --request POST 'http://localhost:3000/data-scraper/scrapeData'