Commit 19268da3b6a40364c6cd22163e1342c6d52db2c6
0 parents
Exists in
master
and in
3 other branches
Initial commit.
Showing
2 changed files
with
49 additions
and
0 deletions
Show diff stats
1 | +++ a/README.md | ||
@@ -0,0 +1,48 @@ | @@ -0,0 +1,48 @@ | ||
1 | + | ||
2 | +The sources of the website available at https://spaceweatheronline.cdpp.eu | ||
3 | + | ||
4 | + | ||
5 | +# What | ||
6 | + | ||
7 | +## Web Server | ||
8 | + | ||
9 | +Build and serve the space weather visualization webpages. | ||
10 | +A flask webserver, serving d3.js visualizations. | ||
11 | + | ||
12 | + | ||
13 | +## Bridge | ||
14 | + | ||
15 | +Gather NetCDF data from AMDA, and serve it as CSV to the javascript plotter. | ||
16 | + | ||
17 | + | ||
18 | +### Rationale | ||
19 | + | ||
20 | +- Reading NetCDF from javascript is doable, but still very hacky. | ||
21 | +- The bridge can handle pagination, collecting multiple NetCDF into one CSV. | ||
22 | + | ||
23 | + | ||
24 | +# How | ||
25 | + | ||
26 | +## Overview | ||
27 | + | ||
28 | +- `config.yml` : the main configuration file. | ||
29 | +- `web/run.py` : the front controller, holding most of the code. | ||
30 | + | ||
31 | + | ||
32 | +## Install | ||
33 | + | ||
34 | +``` bash | ||
35 | +virtualenv venv | ||
36 | +source venv/bin/activate | ||
37 | +pip install -r requirements.txt | ||
38 | +``` | ||
39 | + | ||
40 | + | ||
41 | +## Develop | ||
42 | + | ||
43 | +``` bash | ||
44 | +source venv/bin/activate | ||
45 | +python web/run.py | ||
46 | +``` | ||
47 | + | ||
48 | +Then, browse [localhost:5000](http://localhost:5000). |