Skip to content

Commit 71abfa9

Browse files
committed
Updates the README.md.
1 parent 644ceba commit 71abfa9

File tree

1 file changed

+15
-5
lines changed
  • examples/next/wp-theme-rendered-blocks

1 file changed

+15
-5
lines changed

examples/next/wp-theme-rendered-blocks/README.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,20 @@ cd examples/next/render-blocks-pages-router
7272
npm install
7373
```
7474

75-
### Start the development server
75+
### Build and start the application
7676

77-
```bash
78-
npm run dev
79-
```
77+
- `cd examples/next/wp-theme-rendered-blocks`
78+
- Then run `npm run example:build` will build and start your application.
79+
- This does the following:
80+
- Starts up [wp-env](https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-env/)
81+
- Imports the database from [wp-env/db/database.sql](wp-env/db/database.sql)
82+
- Install Next.js dependencies for `example-app`
83+
- Runs the Next.js dev script
84+
85+
Congratulations, WordPress should now be fully set up.
86+
87+
| Frontend | Admin |
88+
| ------------------------------------------------ | ------------------------------------------------------------------ |
89+
| [http://localhost:3000/](http://localhost:3000/) | [http://localhost:8888/wp-admin/](http://localhost:8888/wp-admin/) |
8090

81-
http://localhost:3000/ should render the blocks as shown below.
91+
> **Note:** The login details for the admin is username "admin" and password "password"

0 commit comments

Comments
 (0)