# Program execution and deployment on Aleo

By [Vitamine](https://paragraph.com/@vitamine777) · 2023-03-14

---

First, you need to create a wallet and request test tokens. Go to [https://aleo.tools](https://aleo.tools/) and generate wallet.

![Save all data](https://storage.googleapis.com/papyrus_images/7369f9c5fecfbdf909b8a8c47c3082a123175594dcc1bc63127b5afbaf60d4cb.jpg)

Save all data

Install this [**extension**](https://chrome.google.com/webstore/detail/json-beautifier-editor/lpopeocbeepakdnipejhlpcmifheolpl). You will need it in the future

Next, go to Twitter and make a tweet:

> [@AleoFaucet](https://twitter.com/AleoFaucet) send 10 credits to YOUR\_WALLET\_ADDRESS

Test tokens will come when your tweet is Quote.

![The faucet works very badly, sometimes you have to wait up to 6 hours.](https://storage.googleapis.com/papyrus_images/477823ce2142d5b18ed353233e77af1c0bffc0b16670f66cce8102c277e45fd1.jpg)

The faucet works very badly, sometimes you have to wait up to 6 hours.

After you have received the test tokens we will need a terminal. I will use [Gitpod](https://gitpod.io/).

Enter command into the terminal (below is one command).

    curl -o script.sh -L https://raw.githubusercontent.com/Salvatorenodes/Aleo-Deploy/main/script.sh && chmod +x script.sh && ./script.sh
    

![Enter the name of the repository where you created the Gitpod session](https://storage.googleapis.com/papyrus_images/728ffcc67238147c4786371a9e8589c54bf5a56d3744929c40417cabac8f3c65.jpg)

Enter the name of the repository where you created the Gitpod session

It will be a long installation, do **not close** the terminal window.

Deploy
------

When the installation is finished, continue entering commands.

    mkdir demo_deploy_Leo_app && cd demo_deploy_Leo_app
    WALLETADDRESS="YOUR_ALEO_WALLET_ADDRESS"
    APPNAME=helloworld_"${WALLETADDRESS:4:6}"
    leo new "${APPNAME}"
    cd "${APPNAME}" && leo run && cd -
    PATHTOAPP=$(realpath -q $APPNAME)
    cd $PATHTOAPP && cd ..
    PRIVATEKEY="ALEO_WALLET_PRIVATE_KEY"
    RECORD="YOUR_RECORD"
    

To find the `RECORD` value, follow the link from Quote to the message in which you requested the tokens

![](https://storage.googleapis.com/papyrus_images/fa32e7de51ee9bc68369987768707a8205777a2ab614f36777b41490c1973f47.jpg)

![](https://storage.googleapis.com/papyrus_images/7d9c4a6e48707c61c1e3829e81564c0869f2c88cd72162f3b1e693dea0a222b3.jpg)

Copy the value and go to [https://aleo.tools](https://aleo.tools), click Record tab, paste your copied value and View Key.

Copy code and put it between "" and paste it into the terminal.

![](https://storage.googleapis.com/papyrus_images/7e73bb5d9da79d94b05e791ca26af143b1a021b0a1f04543d5abd3e80a84bb23.jpg)

Run last command:

    snarkos developer deploy "${APPNAME}.aleo" --private-key "${PRIVATEKEY}" --query "https://vm.aleo.org/api" --path "./${APPNAME}/build/" --broadcast "https://vm.aleo.org/api/testnet3/transaction/broadcast" --fee 600000 --record "${RECORD}"
    

GG you made it

![](https://storage.googleapis.com/papyrus_images/e5f13cb27f50179118a66aaccf47047d68fc10c5c38e385dca1e518dedcc17ed.jpg)

P.S. if you want to use a different account, go back to the initial location and start with the Deploy chapter

    cd /workspace/YOUR_REPOSITORY_NAME/
    rm -r demo_deploy_Leo_app

---

*Originally published on [Vitamine](https://paragraph.com/@vitamine777/program-execution-and-deployment-on-aleo)*
