-
Notifications
You must be signed in to change notification settings - Fork 1
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 #14 from partiql/website-update-and-workflow
Website update and workflow
- Loading branch information
Showing
16 changed files
with
280 additions
and
127 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,59 @@ | ||
name: PR To GitHub Page Repo | ||
|
||
on: | ||
push: | ||
branches: | ||
- react-website | ||
|
||
jobs: | ||
send-pull-requests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build Bundle | ||
run: | | ||
npm i | ||
npm run build | ||
- name: copy Bundle | ||
run: | | ||
mkdir -p ~/artifact | ||
cp dist/*.wasm ~/artifact | ||
cp dist/*.js ~/artifact | ||
cp dist/*.txt ~/artifact | ||
ls ~/artifact >> $GITHUB_STEP_SUMMARY | ||
- name: checkout github page repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'partiql/partiql.github.io' | ||
ref: 'main' | ||
token: ${{ secrets.ACTION_TOKEN }} | ||
|
||
- name: port changes | ||
run: | | ||
# Setup the committers identity. | ||
git config user.email "[email protected]" | ||
git config user.name "PartiQL Team" | ||
# port in the changes | ||
rm -r ui/src/static | ||
mkdir ui/src/static | ||
cp ~/artifact/*.wasm ui/src/static | ||
cp ~/artifact/*.js ui/src/static | ||
cp ~/artifact/playground.js.LICENSE.txt ui/playground.js.LICENSE.txt | ||
git add . | ||
- name: create pull-request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.ACTION_TOKEN }} | ||
commit-message: Update report | ||
committer: PartiQL Team <[email protected]> | ||
branch: update-playground | ||
delete-branch: true | ||
title: 'Update Playground' | ||
body: | | ||
Update Playground |
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
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,58 @@ | ||
# PartiQL Playground (Proof of Concept) | ||
|
||
PartiQL Playground provides the functionality to execute PartiQL in a web environment. | ||
|
||
_Please note, at this stage, the code as is in this package is considered experimental and should not be used for production._ | ||
|
||
:raised_hands: Checkout the [playground](https://partiql.org/playground.html#/evaluate) now :raised_hands:. | ||
|
||
## Development | ||
This Branch contains Rust Code for WASM generation. | ||
|
||
`PartiQL Playground` uses [WebAssembly (Wasm)](https://webassembly.org/) for integrating the front-end with PartiQL Rust back-end. | ||
|
||
Upon merging pull request, the GitHub action will automatically create a new pull request towards `react-website` branch. | ||
|
||
The `React Website` branch contains code for the experimental web application. | ||
|
||
To run test: | ||
``` | ||
``` | ||
|
||
## Build and run the website application (Locally) | ||
1. Checkout main branch and develop | ||
2. Build the package using `make` | ||
```commandline | ||
make build | ||
``` | ||
3. Port the wasm files to `react wesbite` branch | ||
```commandline | ||
git checkout -b temp | ||
make buid | ||
rm pkg-web/.gitignore | ||
git add . | ||
git commit -m "adding pkg-web to git" | ||
git checkout react-website | ||
git checkout temp -- pkg-web | ||
git add pkg-web | ||
git commit -m "wasm update" | ||
``` | ||
|
||
4. Build the `react website branch` | ||
```commandline | ||
npm i | ||
npm run serve | ||
``` | ||
|
||
|
||
## Legacy Asset | ||
| Branch Name | Asset | | ||
|-------------|-----------------------------------------------------------------------------------------------------| | ||
| Docker | A version of PartiQL Playground implementation. Additional features includes docker build Rest APIs | | ||
|
||
## Dependencies | ||
| Package | License | | ||
|------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------| | ||
| [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) | [Apache License Version 2.0](https://github.com/rustwasm/wasm-bindgen/blob/main/LICENSE-APACHE) | | ||
| [wasm-pack](https://github.com/rustwasm/wasm-pack) | [Apache License Version 2.0](https://github.com/rustwasm/wasm-pack/blob/master/LICENSE-APACHE) | |
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
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
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
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
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
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
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
Oops, something went wrong.