feat: update samples readme
This commit is contained in:
parent
b8fc705df7
commit
f4a10cb7ad
28
packages/samples/hello/README.md
Normal file
28
packages/samples/hello/README.md
Normal 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]
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user