-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Urban-Analytics-Technology-Platform/add-p…
…opgetter-download-mode Initial version built from web app template with search and download functionality (#12)
- Loading branch information
Showing
34 changed files
with
11,441 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,4 @@ test-results/ | |
package-lock.json | ||
.svelte-kit/ | ||
|
||
rust_backend/Cargo.lock | ||
rust_backend/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
Oops, something went wrong.