From ed7b393ed370908c9889053b7f018fc2b644bd9e Mon Sep 17 00:00:00 2001 From: MJumpKing <2572430586@qq.com> Date: Mon, 22 Apr 2024 14:29:20 +0800 Subject: [PATCH] update MUD book --- src/build-app/1-build-app-mud.md | 4 ++-- src/getting-started/quick-start-mud.md | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/build-app/1-build-app-mud.md b/src/build-app/1-build-app-mud.md index 1127c22..22dd964 100644 --- a/src/build-app/1-build-app-mud.md +++ b/src/build-app/1-build-app-mud.md @@ -17,7 +17,7 @@ Lets check out the folder structure first of the [App Template](https://github.c - `deploy.sh` deploy your app contract and init your app. - `upload_json.sh` upload your abi to github. - `mud.config.ts` your app's table and namespace config. - - `.env` contains the values required to deploy the MUD and pixelLAW core + - `.env` contains the values required to deploy the MUD and pixeLAW core The default App Template includes the contract code of Paint App which allows users to paint any pixel with any color. @@ -27,7 +27,7 @@ Let's dive into the code of the [App Template](https://github.com/themetacat/pix ### Imports -At first we require certain imports from the core to enable our paint app. Depending on your use case you might require different imports. Refer to the [Pixel Core](https://github.com/themetacat/pixelaw_core), +At first we require certain imports from the core to enable our paint app. Depending on your use case you might require different imports. Refer to the [PixeLAW Core](https://github.com/themetacat/pixelaw_core), ```solidity import { System } from "@latticexyz/world/src/System.sol"; diff --git a/src/getting-started/quick-start-mud.md b/src/getting-started/quick-start-mud.md index 8c7828f..a5ccf87 100644 --- a/src/getting-started/quick-start-mud.md +++ b/src/getting-started/quick-start-mud.md @@ -26,15 +26,18 @@ git clone https://github.com/themetacat/pixelaw_core pixelaw_core To make sure everything is working correctly, run the following command to do all things: -```console -cd pixelaw_core && chmod u+x ./start.sh && ./start.sh +```sh +cd pixelaw_core && pnpm install +``` +```sh +pnpm run start ``` After some time (around 10 minute) you should be able to see PixeLAW running on [http://localhost:3000](http://localhost:3000). You should be able to see PixeLAW in its true glory: ![PixelCore](../images/PixelCore.png) -If you run into any issues you can check out the [github repo](https://github.com/pixelaw/app_template/tree/main), and read [start.sh](https://github.com/themetacat/pixelaw_core/blob/main/start.sh) to see the build and deploy details. +If you run into any issues you can check out the [github repo](https://github.com/themetacat/pixelaw_app_template_mud/tree/main), and read [start.sh](https://github.com/themetacat/pixelaw_core/blob/main/start.sh) to see the build and deploy details. ## Next Step @@ -42,4 +45,4 @@ Awesome, you just successfully deployed the Pixel Core. The next step should be for you to build your own PixeLAW App. We will remain in the `app_template_mud` repo. -Go and be a Pixel Builder and [deploy your own App to the core](../build-app/build-app-mud.md)! \ No newline at end of file +Go and be a Pixel Builder and [deploy your own App to the core](../build-app/1-build-app-mud.md)! \ No newline at end of file