diff options
| author | Yuval Adam <_@yuv.al> | 2017-11-17 16:50:20 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-11-17 16:50:20 +0200 |
| commit | 58b22a1e411c45c133fc5a9d53ee775013b42c16 (patch) | |
| tree | 1e06cc50abe5fd0c8103d417f1184cb6b39e50f1 /README.md | |
| parent | 5861ad0fefe67fc5c40c46069c0aa337745eda8e (diff) | |
Unified file structure
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 36 |
1 files changed, 28 insertions, 8 deletions
@@ -2,27 +2,47 @@ An interactive rain radar clone running on Mapbox GL, see it live at: [https://geshem.space](https://geshem.space) +The entire service is served off of static assets located in S3 buckets: + - A staticmain index page, JS bundle and other static assets that are uploaded upon deploy + - Radar images that collected and indexed every minute by a recurring task running on AWS Lambda + +## Prerequisites + + - Node.js + - Yarn + - Serverless + ## Dev - - Node + Yarn - - Redis (optional, recommended) +### Static Assets Install dependencies: ```bash $ yarn install ``` -Run a local cache: +Build the JS bundle: + ```bash -$ redis-server +$ yarn run build ``` -Run a webpack watch process: +Deploy new static assets to S3: + ```bash -$ webpack --watch +$ yarn run deploy_static ``` -Run the server: +### Cron Task + +#### Deploy + +```bash +$ yarn run deploy_cron +``` + +#### Invoke + ```bash -$ node server.js +$ yarn run invoke_cron ``` |
