Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
add description for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-dev28 committed Oct 31, 2023
1 parent 58f42ee commit a4eb605
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
20 changes: 10 additions & 10 deletions dapps/dapp-challenges/challenge-0-crowdfund.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions dapps/dapp-challenges/challenge-2-liquidity-pool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ Once the transaction is confirmed, you should see updated balances on the fronte
</CompleteStepButton>

## 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:

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a4eb605

Please sign in to comment.