# Sign-In with Wallet (React)

For a step by step tutorial for allowing users to sign in to your app with their wallet, follow the README on [Github](https://github.com/picketapi/picket-example-hello-world).&#x20;

Alternatively, you can [clone the repository](https://github.com/picketapi/picket-example-hello-world) and run the example to preview the final results by following these instructions:

**Step 1: Clone the repository**

Paste the following into your terminal and hit enter:&#x20;

```bash
git clone git@github.com:picketapi/picket-example-hello-world.git
```

**Step 2: Install dependencies**

Cd into the cloned directory

```bash
cd picket-example-hello-world/
```

Install dependencies from `package.json` by running the following command in your terminal.

```bash
npm install
```

**Step 3: Insert your publishable API key**

Open the repository in any code editor and locate the file named `_app.tsx`

Within that file you'll see a line of code that looks like this:&#x20;

```typescript
const apiKey = "YOUR_PUBLISHABLE_KEY_GOES_HERE";
```

Replace `YOUR_PUBLISHABLE_KEY_GOES_HERE` with your publishable key, which you can find on your picket [dashboard](https://picketapi.com/dashboard) once you have logged in.

**Step 4: Run App and Test**

Run the following in your terminal to run the app:

```bash
npm run dev
```

To test the app go to any browser and go to `localhost:3000` to see the following:

![](https://3183040354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYuewee9BpHHd2p9bSo45%2Fuploads%2FF9yZH3vAci0f3euQmr9c%2FScreen%20Shot%202022-07-22%20at%206.18.56%20PM.png?alt=media\&token=ae311112-6b99-4833-8077-059fae45bf54)

You can now click on that button to experience log in for yourself. You also have the cloned repository on your computer for inspection. You can mess with it to learn and start building your next project.

If you have any issues getting to this point, feel free to reach out to us at <team@picketapi.com>
