Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/defra/flood-xws-resources
flood-xws-resources
https://github.com/defra/flood-xws-resources
Last synced: 6 days ago
JSON representation
flood-xws-resources
- Host: GitHub
- URL: https://github.com/defra/flood-xws-resources
- Owner: DEFRA
- License: other
- Created: 2021-12-07T11:32:56.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T20:07:17.000Z (over 2 years ago)
- Last Synced: 2024-04-14T07:53:24.972Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 163 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## flood-xws-resources
Default $ENV is "dev"
### Create geojson TA files
`$ DATABASE_URL= cd bin && ./create-target-areas && cd ..`### Deploy the stack
`$ make deploy`or
`$ ENV=test make deploy`
### Sync static alert files to S3
`$ make syncAlerts`### Sync target areas to S3
`$ make syncAreas`## Lambdas
Before running the following commands, ensure each sub-package has built it's `function.zip` by running `npm run package` in each sub-directory.### Upload the process alert lambda
`$ make uploadProcessAlertLambda`### Upload the process contact lambda
`$ make uploadProcessContactLambda`### Upload the process subscription lambda
`$ make uploadProcessSubscriptionLambda`### Upload the queue messages lambda
`$ make uploadQueueMessagesLambda`### Upload the send messages lambda
`$ make uploadSendMessagesLambda`Note: Currently need to manually configure some `send-messages` and `process-subscription` lambda ENVARS
### Delete the stack
`$ make delete`## flood-xws-data-hub
S3 Bucket static file-based public API
### S3 Static hosted website
Setting up a [static website in S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-custom-domain-walkthrough.html) using a custom domain that is registered with Route 53.
The domains are (TBD)
https://dev.xws.com
https://tst.xws.com
https://pp.xws.com
https://xws.com
### Bucket file structure
* alerts
* alerts.rss (The RSS feed)
* alerts.atom (The RSS atom feed)
* alerts.json (The json feed)
* items (All alert files go in here)
* {guid}.xml
* assets (The files for alert feed styling found in this repo go here)
* alert-style.xsl
* draw-shapes.js
* favicon.ico
* rss-style.xsl
* xws.png
* areas
* ea-area.json
* ea-owner.json
* target-area-category.json
* target-area-type.json
* target-area-view.json
* target-area.json
* target-areas/{code}.json