From 1b0b401d64546055f07c393e37916fbb9e1f28b2 Mon Sep 17 00:00:00 2001 From: stdavis Date: Mon, 26 Aug 2024 15:20:27 -0600 Subject: [PATCH] docs: add local dev setup instructions --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 75cc6be..544a441 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,19 @@ Production: [https://electrofishing-query.ugrc.utah.gov](https://electrofishing- ## Deployment 1. Update `Electrofishing/MapService`: - * Check "Allow per request modification of layer order and symbology" and register the SDE database as a dynamic workspace with the an ID of "ElectrofishingQuery". - * Update Parameters -> Max Number of Records Returns from 1000 to 5000. + - Check "Allow per request modification of layer order and symbology" and register the SDE database as a dynamic workspace with the an ID of "ElectrofishingQuery". + - Update Parameters -> Max Number of Records Returns from 1000 to 5000. 1. Publish `scripts/Download.tbx/Download` as `Electrofishing/Download`: - * asynchronous - * max time a client can use the service: `300` - * Copy `scripts/swq_secrets.py`, `scripts/__init__.py`, `scripts/download.py`, & `scripts/sql/*` to `C:\arcgisserver\directories\arcgissystem\arcgisinput\Electrofishing\Download.GPServer\extracted\p20\scripts` - * Update `swq_secrets.py` to reflect the environment that you have published to. - * Download and install [Microsoft ODBC Driver 17 for SQL Server](https://www.microsoft.com/en-us/download/details.aspx?id=56567). + - asynchronous + - max time a client can use the service: `300` + - Copy `scripts/swq_secrets.py`, `scripts/__init__.py`, `scripts/download.py`, & `scripts/sql/*` to `C:\arcgisserver\directories\arcgissystem\arcgisinput\Electrofishing\Download.GPServer\extracted\p20\scripts` + - Update `swq_secrets.py` to reflect the environment that you have published to. + - Download and install [Microsoft ODBC Driver 17 for SQL Server](https://www.microsoft.com/en-us/download/details.aspx?id=56567). + +## Development + +### Setup + +1. `npm install` from root and functions folders. +1. Create `.env.local` files in root and functions folders using the corresponding `.env` files as examples. +1. `npm start` to start the development server.