# Get sample code

## Open Source on GitHub

The atPlaform and atSDKs are open source. You can find the source code on GitHub and downloaded from [Atsign Foundation](https://github.com/atsign-foundation). This tutorial starts with sample code to demonstrate how to share data and send notifications between Atsigns. These are the basic building blocks for powerful open-source applications like [NoPorts](https://www.noports.com/), which you can use as a reference to see the code in action.

## Clone the demo repo

In VS Code you can click "Clone Git Repository" and enter the URL

```
https://github.com/atsign-foundation/at_demos.git
```

This will copy down all the sample code from GitHub to the directory you select. VS Code will ask you if you want to open the directory you just downloaded and say no. We will pick the one directory we need in the next step.

<figure><img src="https://1631869959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpQPWQHMckXtXYemavYhN%2Fuploads%2FkmxwihJFnIZpDbvTDi2h%2FVScode%20Git.png?alt=media&#x26;token=aefb120a-c184-41ed-8980-29dd08d50799" alt=""><figcaption><p>Clone code from GitHub</p></figcaption></figure>

## Open at\_getting\_started

Click the Open Folder selection and go to the directory you selected and then at\_demos then finally select the at\_getting\_started directory, then click "select folder". You might get a pop up asking if you trust the authors and if you trust us say yes!

At this point you will have the demo code in the IDE and probably see a bunch of red files, meaning something is wrong with them.&#x20;

<figure><img src="https://1631869959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpQPWQHMckXtXYemavYhN%2Fuploads%2FjzztoG54R6Iy0HGokgTn%2Fdart%20pub%20get.png?alt=media&#x26;token=d4317135-8c3c-40ac-b9db-4ffad8930b4b" alt=""><figcaption><p>dart pub get</p></figcaption></figure>

VS Code if you have the Dart plugin installed will ask if you want to run `pub get` you can safely say yes.

Next you can open a terminal session from the VS Code menu, and you will get a window with a prompt. At that prompt you can type the following two commands to pull down the required libraries.

```
dart pub get
```

```
dart pub update
```

Once you have run those commands in the terminal window all the red text will have gone and we are ready to run some code.

<figure><img src="https://1631869959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpQPWQHMckXtXYemavYhN%2Fuploads%2FGeCaInnh6qEuEMc0lr6t%2Fdart%20update.png?alt=media&#x26;token=b07515ee-1874-4f0f-b538-d7019a358b6b" alt=""><figcaption><p>Ready to run.</p></figcaption></figure>
