feat: update samples readme

This commit is contained in:
chenos 2022-09-26 15:18:20 +08:00
parent b8fc705df7
commit f4a10cb7ad
2 changed files with 45 additions and 8 deletions

View File

@ -0,0 +1,28 @@
# Hello sample
## Register
```ts
yarn pm add sample-hello
```
## Activate
```bash
yarn pm enable sample-hello
```
## Launch the app
```bash
# for development
yarn dev
# for production
yarn build samples/hello
yarn start
```
## Demo
[gif]

View File

@ -1,21 +1,30 @@
# Modeling for simple shop scenario # Modeling for simple shop scenario
## Installation ## Register
```bash ```ts
yarn build samples/shop-modeling
yarn pm add sample-shop-modeling yarn pm add sample-shop-modeling
yarn enable sample-shop-modeling
``` ```
## Test ## Activate
Start the local development server:
```bash ```bash
yarn dev --server yarn pm enable sample-shop-modeling
``` ```
## Launch the app
```bash
# for development
yarn dev
# for production
yarn build samples/shop-modeling
yarn start
```
## Connect to the API
### Products API ### Products API
```bash ```bash