From a4eb6056b7a07f5706bb9f784c0450ddf6a4d0e0 Mon Sep 17 00:00:00 2001 From: Julian Martinez Date: Mon, 30 Oct 2023 17:25:38 -0700 Subject: [PATCH] add description for deployment --- .../dapp-challenges/challenge-0-crowdfund.mdx | 20 +++++++++---------- .../challenge-2-liquidity-pool.mdx | 5 ++--- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/dapps/dapp-challenges/challenge-0-crowdfund.mdx b/dapps/dapp-challenges/challenge-0-crowdfund.mdx index 714212c2..5edb4ccc 100644 --- a/dapps/dapp-challenges/challenge-0-crowdfund.mdx +++ b/dapps/dapp-challenges/challenge-0-crowdfund.mdx @@ -203,28 +203,28 @@ You should see an updated balance reflecting the amount you have pledged in the ## Checkpoint 4: ๐Ÿšข Ship it! ๐Ÿš -Now that your dapp is fully functional, its time to prepare it for a new deployment on Futurenet, this time with a hosted frontend. +Now that your dapp is fully functional, its time to deploy it to a production environment. In this step, you will learn how to deploy your dapp to Vercel. This section requires that you have a [Vercel account] and the Vercel cli installed. -You will need to remove unneccessary files to save space for the the deployment. Run the following command to remove the `target` directory: +If you don't have the Vercel cli installed, run the following command to install it globally: ```sh -rm -rf target +npm i --global vercel ``` ->Note: You can build this directory again by running `soroban contract build` - -Next, you will use the Vercel cli to complete your deployment. - [Vercel account]: https://vercel.com/login -If you don't have the Vercel cli installed, run the following command to install it: +You will need to remove unneccessary files to save space for the the deployment. Run the following command to remove the `target` directory: ```sh -npm i --global vercel +rm -rf target ``` -Then, run the following command to deploy your dapp: +>Note: You can build this directory again by running `soroban contract build` + +Next, you will use the Vercel cli to complete your deployment. + +Run the following command to deploy your dapp: ```sh npx vercel --prod diff --git a/dapps/dapp-challenges/challenge-2-liquidity-pool.mdx b/dapps/dapp-challenges/challenge-2-liquidity-pool.mdx index 498cf474..2d012440 100644 --- a/dapps/dapp-challenges/challenge-2-liquidity-pool.mdx +++ b/dapps/dapp-challenges/challenge-2-liquidity-pool.mdx @@ -280,8 +280,7 @@ Once the transaction is confirmed, you should see updated balances on the fronte ## Checkpoint 4: ๐Ÿšข Ship It! ๐Ÿš - -Navigate to the `frontend` directory and run the development server: +Now that your dapp is fully functional, its time to deploy it to a production environment. In this step, you will learn how to deploy your dapp to Vercel. First, you will remove the target directory, as it is not used by Vercel to deploy your site. To do this, navigate to the `liquidity-pool` directory and run the following: @@ -313,7 +312,7 @@ Then, you need to update the `package.json` file in the frontend directory to po Next, you will use the Vercel CLI to complete your deployment. -> Note: If you donโ€™t already have a [Vercel account], you should create one and link it to your GitHub account. +> Note: If you donโ€™t already have a [Vercel account], you will need to create one and link it to your GitHub account. [Vercel account]: https://vercel.com/login