Skip to content

Commit 8bd7c41

Browse files
committed
Merged in onboarding-mockup (pull request #35)
Onboarding mockup
2 parents 84be90a + 7f3cb25 commit 8bd7c41

File tree

18 files changed

+215
-143
lines changed

18 files changed

+215
-143
lines changed

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ DOCKER_EXEC_DJANGO=$(shell command -v docker > /dev/null && echo "docker-compose
33
DOCKER_EXEC_VUE=$(shell command -v docker > /dev/null && echo "docker-compose exec vue")
44
DOCKER_EXEC_WWW=$(shell command -v docker > /dev/null && echo "docker-compose exec www")
55

6+
DOCKER_CRON_VUE=$(shell command -v docker > /dev/null && echo "docker-compose exec -T vue")
7+
DOCKER_CRON_DJANGO=$(shell command -v docker > /dev/null && echo "docker-compose exec -T django")
8+
9+
610
.PHONY: tests
711

812
init:
@@ -12,10 +16,17 @@ init:
1216
up:
1317
docker-compose up -d
1418

19+
down: stop
20+
21+
stop:
22+
docker-compose stop
23+
1524
build_docker:
1625
cd django && make build_docker
1726
cd vue && make build_docker
1827

28+
build: build_docker
29+
1930
push:
2031
cd django && make push
2132
cd vue && make push
@@ -29,6 +40,11 @@ enter_vue:
2940
enter_www:
3041
$(DOCKER_EXEC_WWW) ash
3142

43+
start_all: up
44+
$(DOCKER_CRON_VUE) make &
45+
$(DOCKER_CRON_DJANGO) make &
46+
$(DOCKER_CRON_VUE) make screenshotservice &
47+
3248
start_vue:
3349
$(DOCKER_EXEC_VUE) make
3450

README.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1-
# Gemeindescan Web UI
1+
# Gemeindescan Web
22

3-
Web application under heavy development. For more information, please visit https://cividi.ch
3+
A web application for publishing and collaborating around urban planning projects. This project is part of the [Cividi](https://cividi.ch) solution for holistic urban assessments, used as a tool for setting planning priorities.
44

5-
The current tech stack of this project is:
5+
For more information, please visit [Gemeindescan.ch](https://gemeindescan.ch) and read our [Whitepaper](https://bitbucket.org/cividi/whitepaper).
6+
7+
# Additional documentation
8+
9+
- [Release notes](./RELEASE.md)
10+
- [Architecture](./docs/architecture.md)
11+
- [Troubleshooting](./docs/troubleshooting.md)
12+
- [Test guide](./docs/testing.md)
13+
- [Django](./docs/django.md)
14+
- [GraphQL](./docs/graphql.md)
15+
- [Further links](./docs/links.md)
16+
17+
# Developer guide
18+
19+
:construction: The current tech stack of this project is:
620

721
- Vuetify
822
- Vue.js
@@ -12,15 +26,7 @@ The current tech stack of this project is:
1226
- Wagtail
1327
- Docker
1428

15-
# Releases
16-
17-
*See [RELEASE.md](/RELEASE.md)*
18-
19-
# Developer guide
20-
21-
:construction:
22-
23-
For a tour of the app and a testing protocol see [`docs/testing.md`](/docs/testing.md).
29+
For a tour of the app and a testing protocol see [`docs/testing.md`](./docs/testing.md).
2430

2531
## setup project
2632

@@ -76,6 +82,14 @@ GraphQLi: http://www:8000/graphql
7682

7783
**start services**
7884

85+
Start all the services at the same time using
86+
87+
```bash
88+
make start_all
89+
```
90+
91+
or individually using:
92+
7993
```bash
8094
# 1. shell
8195
make start_vue
@@ -87,6 +101,12 @@ make start_screenshotservice
87101

88102
You can also start the vue / django service from the vscode shell (see editor).
89103

104+
**stop services**
105+
106+
```bash
107+
make stop
108+
```
109+
90110
### tests
91111

92112
```bash
@@ -126,11 +146,3 @@ Type `make` in the vscode terminal, that creates the django dev server on your m
126146
## deploy
127147

128148
Type `make deploy_prod` in the project root. The file `env.hosts.prod` needs to have the right settings.
129-
130-
## additional docs
131-
132-
- [architecture](/docs/architecture.md)
133-
- [django](/docs/django.md)
134-
- [links](/docs/links.md)
135-
- [grahpql](/docs/graphql.md)
136-
- [troubleshooting](/docs/troubleshooting.md)

RELEASE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@
22

33
## Releases
44

5+
### 0.6.1
6+
[Released: *2020-09-03*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.6.1)
7+
8+
- Improved snapshot loading and switching
9+
10+
### 0.6.0
11+
[Released: *2020-08-04*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.6.0)
12+
13+
- Added snapshot sections in workspaces and municipalities based on topic
14+
15+
### 0.5.1
16+
[Released: *2020-05-27*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.5.1)
17+
18+
- Improved OpenGraph Support
19+
- Improved screenshot server
20+
21+
### 0.5.0
22+
[Released: *2020-05-20*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.5.0)
23+
24+
- Added OpenGraph support for public snapshots (rich social media links)
25+
- Improved error messages in frontend
26+
- Improved screenshot server
27+
- Improved django backend
28+
29+
### 0.4.0
30+
[Released: *2020-05-11*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.4.0)
31+
32+
- Added PNG downloads
33+
- Added screenshot server
34+
- Added Django and Vue tests
35+
536
### 0.3.1
637
[Released: *2020-04-09*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.3.1)
738
[Sprint: 4 "Out of the Box"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+4%3A+Out+of+the+box)

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232
- VUE_APP_MAPBOX_DEFAULT_STYLES=mapbox://styles/gemeindescan/ck6rp249516tg1iqkmt48o4pz
3333
working_dir: /opt/vue
3434
volumes:
35-
- ./vue:/opt/vue
35+
- ./vue:/opt/vue:Z
3636
- var-gemeindescan-webui:/var/services/
3737
- vscode-remote-vue:/root/.vscode-server
3838
ports:
@@ -60,7 +60,7 @@ services:
6060
- DJANGO_ADMIN_HEADER_COLOR=#ff0000
6161
working_dir: /opt/app
6262
volumes:
63-
- ./django:/opt/app
63+
- ./django:/opt/app:Z
6464
- var-gemeindescan-webui:/var/services
6565
- vscode-remote-django:/root/.vscode-server
6666
ports:
@@ -72,7 +72,7 @@ services:
7272
image: openresty/openresty:1.15.8.3-alpine
7373
hostname: www
7474
volumes:
75-
- ./etc/nginx:/etc/nginx/conf.d
75+
- ./etc/nginx:/etc/nginx/conf.d:Z
7676
- var-gemeindescan-webui:/var/services
7777
ports:
7878
- 8000:8000

docs/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# architecture
1+
# Architecture
22

3-
## django
3+
_Notes on the architecture of the project._
44

55
We switch to graphne + django. Our main goal is to have a backend service that speaks graphql. FastAPI doesn’t brings much to the table in this regard.
66
The focus of FastAPI Is OpenAPI which is REST based. Also Swagger UI is build for REST. The graphql part is just reused from Starlette which itself uses graphene.

docs/django.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# django
1+
# Django
2+
3+
_Notes on our usage of the Django Framework._
24

35
## init project
46

docs/graphql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# graphql
1+
# GraphQL
22

3-
go to '/graphql/' which opens the GraphiQL browser
3+
_Notes on our usage of the GraphQL-based query API._
44

55
## sample queries
66

7+
go to '/graphql/' which opens the GraphiQL browser
8+
79
### gemeinden
810

911
```graphql
@@ -45,5 +47,3 @@ The `MunicipalityNode` has the fields
4547
}
4648
}
4749
```
48-
49-

docs/links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# links
1+
# Further References
22

33
## django
44

docs/troubleshooting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# troubleshooting
1+
# Troubleshooting
22

33
## init
44

55
If you want/need a clean state you can delete the var docker volume.
66
`docker volume rm var-gemeindescan-webui`
77

8-
## vscode
8+
## vscode
99

1010
If you have a vscode related problem it could help to delete the vscode docker volume.
11-
- django: `docker volume rm gemeindescan-webui_vscode-remote-django`
12-
- vue: `docker volume rm gemeindescan-webui_vscode-remote-vue`
11+
- django: `docker volume rm gemeindescan-webui_vscode-remote-django`
12+
- vue: `docker volume rm gemeindescan-webui_vscode-remote-vue`
1313

1414
## windows
1515

vue/.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
VUE_APP_GRAPHQL_URI=/graphql/
22
VUE_APP_DJANGOBASEURL=
3+
VUE_APP_SNAPSHOTSTOREURL=
34
VUE_APP_FATHOM_SITEID=

0 commit comments

Comments
 (0)