mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
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
|
||||
|
||||
## Installation
|
||||
## Register
|
||||
|
||||
```bash
|
||||
yarn build samples/shop-modeling
|
||||
```ts
|
||||
yarn pm add sample-shop-modeling
|
||||
yarn enable sample-shop-modeling
|
||||
```
|
||||
|
||||
## Test
|
||||
|
||||
Start the local development server:
|
||||
## Activate
|
||||
|
||||
```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
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user