blob: 2e5a50e172f0553e12c26ced503ec61f24d962d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Geshem
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
### Static Assets
Install dependencies:
```bash
$ yarn install
```
Build the JS bundle:
```bash
$ yarn run build
```
Deploy new static assets to S3:
```bash
$ yarn run deploy_static
```
### Cron Task
#### Deploy
```bash
$ yarn run deploy_cron
```
#### Invoke
```bash
$ yarn run invoke_cron
```
|