blob: 91bc1bdb6b61a19ddc11b95202d230920ca2c29a (
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
49
50
51
52
53
54
55
56
|
# swimmer
Network-based tile tool.
## installation
First, install miniconda and node.
```
conda create env -f environment.yml
npm install
```
(this should work on Linux as well but let me know if it doesn't)
## running the site
Before running the commands, enter the client directory, load the Conda environment, and make sure the database is current:
```
cd cli
conda activate swimmer
./cli.py db upgrade head
```
Then build the frontend and run the Flask server:
```
npm run build
./cli.py flask run
```
The server will be running on http://0.0.0.0:5000/
## development
Monitor the Javascript for changes (run in another window):
```
npm run watch
```
Generate a new migration if you've modified the database:
```
./cli.py db revision --autogenerate -m 'describe the changes'
./cli.py db upgrade head
```
## building the site
```
./cli.py site export --graph swimmer
```
|