Skip to content

Commit

Permalink
feat: improve site-api integration and fix many bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sampullman committed Jul 2, 2024
1 parent 2c7afcc commit 4b15e0a
Show file tree
Hide file tree
Showing 15 changed files with 3,020 additions and 2,265 deletions.
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
VITE_EXEC_ENV=dev

VITE_SITE_FORMAT_VERSION=0.1
VITE_SITE_API_URL=http://127.0.0.1:3100
VITE_SITE_ID=2af5f0a4-c273-42ff-b5bc-847332cbb29f
VITE_AUTH_BYPASS_TOKEN=dev
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@

A very simple integration of `@pubstudio/editor`, `@pubstudio/renderer` that relies on `pubstudio-site-api` for site persistence.

#### Prerequisites
### Prerequisites

- Install [PNPM](https://pnpm.io/)

#### Setup
### Setup

```bash
# Install packages
pnpm i
```

## Run
### Run Site API

Follow the instructions [here](https://github.com/samatechtw/pubstudio-builder/tree/main/backend/site-api) to run the backend.

### Run

```bash
# Dev server with hot-reloading
Expand All @@ -34,6 +38,7 @@ Configuration is provided from the environment, in development mode defaults are
| ------------------------ | ----------------------------------------- |
| EXEC_ENV | Execution environment: dev, ci, stg, prod |
| VITE_SITE_FORMAT_VERSION | Site data format version |
| VITE_SITE_API_URL | Site API backend URL |

**Docker**

Expand Down
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,26 @@
"author": "",
"license": "MIT",
"dependencies": {
"@intlify/core-base": "^9.9.1",
"@pubstudio/builder": "1.0.1",
"petite-vue-i18n": "^9.9.1",
"vue": "^3.4.19"
"@intlify/core-base": "^9.13.1",
"@pubstudio/builder": "1.2.0",
"petite-vue-i18n": "^9.13.1",
"vue": "^3.4.31",
"vue-router": "^4.4.0"
},
"devDependencies": {
"@samatech/postcss-basics": "^0.7.3",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/eslint-config-typescript": "^12.0.0",
"eslint": "^8.56.0",
"@samatech/postcss-basics": "^0.7.4",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/eslint-config-typescript": "^13.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-vue": "^9.21.1",
"stylelint": "^16.2.1",
"stylelint-config-standard": "^36.0.0",
"typescript": "^5.3.3",
"vite": "^5.1.2",
"vue-eslint-parser": "^9.4.2"
"eslint-plugin-vue": "^9.26.0",
"stylelint": "^16.6.1",
"stylelint-config-standard": "^36.0.1",
"typescript": "^5.5.2",
"vite": "^5.3.2",
"vue-eslint-parser": "^9.4.3"
}
}
Loading

0 comments on commit 4b15e0a

Please sign in to comment.