Skip to content

Commit

Permalink
Merge pull request #13 from Urban-Analytics-Technology-Platform/add-p…
Browse files Browse the repository at this point in the history
…opgetter-download-mode

Initial version built from web app template with search and download functionality (#12)
  • Loading branch information
sgreenbury authored Dec 17, 2024
2 parents 6c41ba8 + 45f8814 commit 617dd94
Show file tree
Hide file tree
Showing 34 changed files with 11,441 additions and 52 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on:
pull_request:
branches: [main]

push:
branches: [main]

defaults:
run:
working-directory: popgetter-browser

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0

- name: Cache WASM build
uses: actions/cache@v3
with:
path: popgetter-browser/rust_backend/target
key: rust_backend

- name: Install dependencies for all packages
run: |
cd web/
pnpm install
- name: Build web app
run: |
cd web
pnpm rust-release
pnpm build
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: popgetter-browser/web/build/
1 change: 0 additions & 1 deletion popgetter-browser/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ test-results/
package-lock.json
.svelte-kit/

rust_backend/Cargo.lock
rust_backend/target/
14 changes: 12 additions & 2 deletions popgetter-browser/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# My new web app!
# Popgetter-browser

This is a simple web app that I have created using the UATP template.
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)).

## Quickstart
- Install [Rust](https://doc.rust-lang.org/book/ch01-01-installation.html) (Minimum Supported Version: 1.80)
- Install [pnpm](https://pnpm.io/installation)
- Run:
```shell
cd web
pnpm rust
pnpm dev
```
Loading

0 comments on commit 617dd94

Please sign in to comment.