Skip to content

Commit 617dd94

Browse files
authored
Merge pull request #13 from Urban-Analytics-Technology-Platform/add-popgetter-download-mode
Initial version built from web app template with search and download functionality (#12)
2 parents 6c41ba8 + 45f8814 commit 617dd94

34 files changed

+11441
-52
lines changed

.github/workflows/ci.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
on:
2+
pull_request:
3+
branches: [main]
4+
5+
push:
6+
branches: [main]
7+
8+
defaults:
9+
run:
10+
working-directory: popgetter-browser
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 9
24+
25+
- name: Install wasm-pack
26+
uses: jetli/wasm-pack-action@v0.4.0
27+
28+
- name: Cache WASM build
29+
uses: actions/cache@v3
30+
with:
31+
path: popgetter-browser/rust_backend/target
32+
key: rust_backend
33+
34+
- name: Install dependencies for all packages
35+
run: |
36+
cd web/
37+
pnpm install
38+
39+
- name: Build web app
40+
run: |
41+
cd web
42+
pnpm rust-release
43+
pnpm build
44+
45+
- name: Publish
46+
uses: peaceiris/actions-gh-pages@v3
47+
with:
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
publish_dir: popgetter-browser/web/build/

popgetter-browser/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ test-results/
77
package-lock.json
88
.svelte-kit/
99

10-
rust_backend/Cargo.lock
1110
rust_backend/target/

popgetter-browser/README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
# My new web app!
1+
# Popgetter-browser
22

3-
This is a simple web app that I have created using the UATP template.
3+
A web interface for the Popgetter project ([popgetter (data)](https://www.github.com/Urban-Analytics-Technology-Platform/popgetter), [popgetter (CLI, library, Python)](https://github.com/Urban-Analytics-Technology-Platform/popgetter-cli)).
4+
5+
## Quickstart
6+
- Install [Rust](https://doc.rust-lang.org/book/ch01-01-installation.html) (Minimum Supported Version: 1.80)
7+
- Install [pnpm](https://pnpm.io/installation)
8+
- Run:
9+
```shell
10+
cd web
11+
pnpm rust
12+
pnpm dev
13+
```

0 commit comments

Comments
 (0)