https://github.com/agrc/electrofishing-query
A web application for viewing and querying electrofishing data
https://github.com/agrc/electrofishing-query
billable government-app terraform-managed website
Last synced: 7 months ago
JSON representation
A web application for viewing and querying electrofishing data
- Host: GitHub
- URL: https://github.com/agrc/electrofishing-query
- Owner: agrc
- License: mit
- Created: 2019-04-16T22:55:17.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T00:26:41.000Z (9 months ago)
- Last Synced: 2025-01-28T01:28:10.485Z (9 months ago)
- Topics: billable, government-app, terraform-managed, website
- Language: TypeScript
- Homepage: https://electrofishing-query.ugrc.utah.gov
- Size: 3.19 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# electrofishing-query
[](https://github.com/agrc/electrofishing-query/actions/workflows/pull_request.yml)
[](https://github.com/agrc/electrofishing-query/actions/workflows/push.yml)A web application for viewing and querying electrofishing data.
Staging: [https://electrofishing-query.dev.utah.gov](https://electrofishing-query.dev.utah.gov)
Production: [https://electrofishing-query.ugrc.utah.gov](https://electrofishing-query.ugrc.utah.gov)
## 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.
1. Publish `scripts/Download.tbx/Download` as `Electrofishing/Download`:
- asynchronous
- message level: "info"
- 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. Install the nodejs packages
- `npm install && cd functions && npm install`
1. Create function secrets
- `cd functions && cp .secret .secret.local`
- fill in values in `.secret.local`
1. Copy the ArcGIS Maps SKD for JavaScript assets to the public folder. **This needs to be done anytime the arcgis package is updated.**
- `npm run copy:arcgis`
1. Create `.env.local` files in the project root and the functions folders using the corresponding `.env` files as examples.
1. Start the development server
- `npm start`