Skip to content

Commit

Permalink
docs: add local dev setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 22, 2024
1 parent df468bc commit e9348a3
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit e9348a3

Please sign in to comment.