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

Add lp dapp challenge #543

Merged
merged 22 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions dapps/dapp-challenges/challenge-0-crowdfund.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ Required:

First, clone the Soroban example dapp repo and check out the `challenge` branch:

```sh
```bash
git clone https://github.com/stellar/soroban-example-dapp
cd soroban-example-dapp
git checkout challenge
```

Then, install soroban-cli alias by running the following command:

```sh
```bash
cargo install_soroban
```

Next, make sure that your Docker daemon is running by either opening [Docker Desktop](https://www.docker.com/products/docker-desktop) (recommended) or following the instructions provided [here](https://docs.docker.com/config/daemon/start/).

Then, and build the soroban-preview docker image:

```sh
```bash
make build-docker
```

Expand All @@ -58,7 +58,7 @@ Building the docker image lets you avoid installing the specific version of soro

Open your Docker Desktop app and make sure it is running. Then run the following command to start the backend:

```sh
```bash
./quickstart.sh standalone
```

Expand All @@ -70,13 +70,13 @@ Now that the backend environment is set up, we need to deploy our smart contract

In another terminal, load the contracts and initialize them on the Standalone network by running the following commands:

```sh
```bash
npm run clean
NETWORK=standalone npm run setup
```
If the command runs successfully, your terminal will return a series of messages notifying you about the successful initialization of the contracts and the post-installation sequence.

```sh
```bash
Contract deployed succesfully with ID: CBXHU5BWWTOCZRYX3DMSSKCFG7B3K2YG2I5F75ALPQ6GCY6ZES2XKLTI
Deploy the crowdfund contract
Contract deployed succesfully with ID: CBKY7UN5VGD4LIQFOBOTSUSQWK67BZZTA23NIEVWSWRR5SAT26JQN2BN
Expand Down Expand Up @@ -104,7 +104,7 @@ Please, save your deployed contract ID, you will need it to complete the challen

First, start the development server:

```sh
```bash
npm run dev
```

Expand Down Expand Up @@ -177,20 +177,20 @@ Stop the development server by pressing `ctrl+c` in the terminal where it is run

If you are running docker, now is a good time to stop the Stellar and Soroban preview containers.

```sh
```bash
docker stop stellar soroban-preview
```

Then, run the following commands to initialize the contracts on Futurenet:

```sh
```bash
npm run clean
npm run setup
```

Then run the dev server again:

```sh
```bash
npm run dev
```

Expand All @@ -206,19 +206,19 @@ Next, you will use the Vercel cli to complete our deployment.

First install the Vercel cli:

```sh
```bash
npm i global vercel
```

Then, run the following command to deploy your dapp:

```sh
```bash
npx vercel
```

Then, continue through the prompts (you will not need to modify any settings) until you reach the completion prompt similar to the following:

```sh
```bash
Vercel CLI 30.1.1
🔗 Linked to julian-dev28/soroban-example-dapp (created .vercel)
🔍 Inspect: https://vercel.com/julian-dev28/soroban-example-dapp/C1YZVQSqh6WcyR1uvxz8q2tW1tjD [2s]
Expand Down
10 changes: 5 additions & 5 deletions dapps/dapp-challenges/challenge-1-payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,19 @@ For this example, we will use the Vercel cli to complete your deployment

First install the Vercel cli:

```sh
```bash
npm i global vercel
```

Then run the following command to deploy your app:

```sh
```bash
npx vercel
```

Then continue through the prompts until you see the following output:

```sh
```bash
No framework detected. Default Project Settings:
- Build Command: 'npm run vercel-build' or 'npm run build'
- Development Command: None
Expand All @@ -251,15 +251,15 @@ No framework detected. Default Project Settings:

Select `y` to continue, and then select `build` as the output directory.

```sh
```bash
? Want to modify these settings? [y/N] y
? Which settings would you like to overwrite (select multiple)? Output Directory
? Output Directory? build
```

Once the deployment is complete, you should see something similar to the following output:

```sh
```bash
🔗 Linked to julian-dev28/soroban-react-payment (created .vercel)
🔍 Inspect: https://vercel.com/julian-dev28/soroban-react-payment/AQoFFhZf5K1ufQj57eawApPkFduf [2s]
✅ Production: https://soroban-react-payment.vercel.app [58s]
Expand Down
Loading