---
page_source: https://docs.hdfcbank.juspay.in/docs/hypercheckout-mobile-sdk/flutter/base-sdk-integration/frontend-setup
page_title: Frontend Setup
---


# Run the Frontend Sample Project




### Step 1  Download the Sample Project File 


Click [here](/repository/downloadGithubFile?repository=https://github.com/juspay/juspay-sdk-integration-demo/archive/refs/heads/frontend-flutter.zip) or click on the ‘Download’ button on the top right hand side of the page



#### Code Snippets: -

####  Code Snippet:

```
How to run this project:
Setting up the project

1. Make sure you have flutter installed You can check it by following command in the terminal 

```flutter —version```

You will get the response like this

    ```
        Flutter 3.13.8 • channel stable • https://github.com/flutter/flutter.git
        Framework • revision 6c4930c4ac (2 weeks ago) • 2023-10-18 10:57:55 -0500
        Engine • revision 767d8c75e8
        Tools • Dart 3.1.4 • DevTools 2.25.0
    ```
If you don't have flutter install, follow the steps mentioned https://docs.flutter.dev/get-started/install

2. Download the zip file and open the unzipped folder in VS Code

3. Open the VS Code terminal for this project and follow below instructions


Running The project
1. Install all the project dependencies 

    ```flutter pub get```

Note: Before running the next step make sure you have local backend sample peoject as well as Emulator (Virtual Device) up and running
2. Running the project: 

```flutter run```

 This command will run the project on the available virtual device
```



### Step 2 Open the Sample Project Folder in MS Visual Studio


Unzip the downloaded sample project file and open the unzipped project folder in android studio 



#### Code Snippets: -

####  Code Snippet:

```
How to run this project:
Setting up the project

1. Make sure you have flutter installed You can check it by following command in the terminal 

```flutter —version```

You will get the response like this

    ```
        Flutter 3.13.8 • channel stable • https://github.com/flutter/flutter.git
        Framework • revision 6c4930c4ac (2 weeks ago) • 2023-10-18 10:57:55 -0500
        Engine • revision 767d8c75e8
        Tools • Dart 3.1.4 • DevTools 2.25.0
    ```
If you don't have flutter install, follow the steps mentioned https://docs.flutter.dev/get-started/install

2. Download the zip file and open the unzipped folder in VS Code

3. Open the VS Code terminal for this project and follow below instructions


Running The project
1. Install all the project dependencies 

    ```flutter pub get```

Note: Before running the next step make sure you have local backend sample peoject as well as Emulator (Virtual Device) up and running
2. Running the project: 

```flutter run```

 This command will run the project on the available virtual device
```



### Step 3 Run the Sample Project in the MS Visual Studio


Once you run the sample project, a sample application will be opened on the virtual device/emulator in the android studio 

> **Note**
> Android Studio must be installed in the system.





#### Code Snippets: -

#### Android Code Snippet:

```android
How to run this project:
Setting up the project

1. Make sure you have flutter installed You can check it by following command in the terminal 

```flutter —version```

You will get the response like this

    ```
        Flutter 3.13.8 • channel stable • https://github.com/flutter/flutter.git
        Framework • revision 6c4930c4ac (2 weeks ago) • 2023-10-18 10:57:55 -0500
        Engine • revision 767d8c75e8
        Tools • Dart 3.1.4 • DevTools 2.25.0
    ```
If you don't have flutter install, follow the steps mentioned https://docs.flutter.dev/get-started/install

2. Download the zip file and open the unzipped folder in VS Code

3. Open the VS Code terminal for this project and follow below instructions


Running The project
1. Install all the project dependencies 

    ```flutter pub get```

Note: Before running the next step make sure you have local backend sample peoject as well as Emulator (Virtual Device) up and running
2. Running the project: 

```flutter run```

 This command will run the project on the available virtual device
```



### Step 3 Run the Sample Project in the MS Visual Studio


Once you run the sample project in VS Code, make sure you have an IOS emulator running in the system.



#### Code Snippets: -

#### IOS Code Snippet:

```ios
How to run this project:
Setting up the project

1. Make sure you have flutter installed You can check it by following command in the terminal 

```flutter —version```

You will get the response like this

    ```
        Flutter 3.13.8 • channel stable • https://github.com/flutter/flutter.git
        Framework • revision 6c4930c4ac (2 weeks ago) • 2023-10-18 10:57:55 -0500
        Engine • revision 767d8c75e8
        Tools • Dart 3.1.4 • DevTools 2.25.0
    ```
If you don't have flutter install, follow the steps mentioned https://docs.flutter.dev/get-started/install

2. Download the zip file and open the unzipped folder in VS Code

3. Open the VS Code terminal for this project and follow below instructions


Running The project
1. Install all the project dependencies 

    ```flutter pub get```

Note: Before running the next step make sure you have local backend sample peoject as well as Emulator (Virtual Device) up and running
2. Running the project: 

```flutter run```

 This command will run the project on the available virtual device
```



### Step 4 Test the Payment Flows 


Click on the ‘Go to Cart’ button followed by the ‘checkout’ button to open the payment page. Once the payment page is opened, please test the payment flows using [Test Resources](/hypercheckout-mobile-sdk/android/resources/test-resources)

