https://github.com/dfpc-coe/etl-cotrip-incidents
Incident data from the COTrip Incidents API
https://github.com/dfpc-coe/etl-cotrip-incidents
Last synced: about 1 month ago
JSON representation
Incident data from the COTrip Incidents API
- Host: GitHub
- URL: https://github.com/dfpc-coe/etl-cotrip-incidents
- Owner: dfpc-coe
- License: mit
- Created: 2023-01-13T18:17:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-05-20T15:29:59.000Z (about 1 month ago)
- Last Synced: 2026-05-20T20:46:40.478Z (about 1 month ago)
- Language: TypeScript
- Size: 430 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
ETL-COTRIP-Incidents
Bring COTRIP Data into the TAK System
## Development
Note: [API Spec](https://docs.google.com/document/d/1pVDW5iRiRsAWcixw5Z9umPFRspuOUJUdH2YLpYfltP4)
DFPC provided Lambda ETLs are currently all written in [NodeJS](https://nodejs.org/en) through the use of a AWS Lambda optimized
Docker container. Documentation for the Dockerfile can be found in the [AWS Help Center](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html)
```sh
npm install
```
Add a .env file in the root directory that gives the ETL script the necessary variables to communicate with a local ETL server.
When the ETL is deployed the `ETL_API` and `ETL_LAYER` variables will be provided by the Lambda Environment
```json
{
"ETL_API": "http://localhost:5001",
"ETL_LAYER": "19"
}
```
To run the task, ensure the local [CloudTAK](https://github.com/dfpc-coe/CloudTAK/) server is running and then run with typescript runtime
or build to JS and run natively with node
```
ts-node task.ts
```
```
npm run build
cp .env dist/
node dist/task.js
```
### Deployment
Deployment into the CloudTAK environment for configuration is done via automatic releases to the DFPC AWS environment.
Github actions will build and push docker releases on every version tag which can then be automatically configured via the
CloudTAK API.
Non-DFPC users will need to setup their own docker => ECS build system via something like Github Actions or AWS Codebuild.