From 35fac4a36934f84a2418ebe7ae88e55787d13c7d Mon Sep 17 00:00:00 2001 From: Don Kackman Date: Thu, 10 Oct 2024 16:07:53 -0500 Subject: [PATCH 1/2] reiterate setup steps needed on dev machine --- docs/Setup/dev-setup.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/Setup/dev-setup.md b/docs/Setup/dev-setup.md index 37dcb3e..99c436c 100644 --- a/docs/Setup/dev-setup.md +++ b/docs/Setup/dev-setup.md @@ -17,6 +17,14 @@ Before you begin deploying your project to the DIG Network, ensure that you have Once your DIG Node is fully configured, you're ready to proceed with the following steps in the project directory where your dApp or project is located. +3. **Optional**: If you are publishing a dApp from a machine other than the one that is running your DIG Node, execute these setup steps on that machine. Use the same credentials and seed as you did for your DIG Node. + + ```bash + npm install @dignetwork/dig-chia-cli@alpha -g + dignode remote set peer --username --password + dignode remote sync seed + ``` + --- #### Step 1: Prepare Your Project From 5bcf3f760c0209054fefddb8ff4f26a81a6fe5be Mon Sep 17 00:00:00 2001 From: Don Kackman Date: Thu, 10 Oct 2024 16:46:31 -0500 Subject: [PATCH 2/2] clarify setup steps and some additional details --- docs/Setup/dev-setup.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/Setup/dev-setup.md b/docs/Setup/dev-setup.md index 99c436c..3fa42a3 100644 --- a/docs/Setup/dev-setup.md +++ b/docs/Setup/dev-setup.md @@ -19,11 +19,11 @@ Once your DIG Node is fully configured, you're ready to proceed with the followi 3. **Optional**: If you are publishing a dApp from a machine other than the one that is running your DIG Node, execute these setup steps on that machine. Use the same credentials and seed as you did for your DIG Node. - ```bash - npm install @dignetwork/dig-chia-cli@alpha -g - dignode remote set peer --username --password - dignode remote sync seed - ``` +```bash +npm install @dignetwork/dig-chia-cli@alpha -g +dignode remote set peer --username --password +dignode remote sync seed +``` --- @@ -38,10 +38,12 @@ Once your DIG Node is fully configured, you're ready to proceed with the followi 2. **Build Your Project:** - Compile your project, directing the output to the `./dist` folder (or any build folder of your choice). By default, the DIG CLI looks for the `./dist` folder: + ```bash - npm run build + npm run build # example for a nodejs dApp ``` - - Ensure that your compiled files are present in the `./dist` folder before proceeding. + + - Ensure that your compiled files are present in the `./dist` as that is where they will be added to the network from. --- @@ -60,6 +62,7 @@ Once your DIG Node is fully configured, you're ready to proceed with the followi #### Step 3: Commit Your Build to the Data Store 1. **Commit the `dist` Folder:** + - Ensure that your compiled app and/or content files are present in the `./dist` folder before proceeding. - Use the following command to commit your `dist` folder (or your chosen build directory) to the DIG data store: ```bash dignode commit @@ -75,6 +78,7 @@ Once your DIG Node is fully configured, you're ready to proceed with the followi ```bash dignode push ``` + - Enter the IP address of your dig node when prompted for a peer address. - Ensure your DIG Node is set up and running according to the previous setup guide. This command verifies file integrity and permissions during the upload process. ---