---
parser: v2
auto_validation: true
time: 15
author_name: Thomas Jung
author_profile: https://github.com/jung-thomas
tags: [tutorial>beginner, products>sap-hana, products>sap-hana\,-express-edition]
primary_tag: products>sap-hana
slug: xsa-cap-create-project
canonical_url: https://developers.sap.com/tutorials/xsa-cap-create-project
---

# SAP HANA Native, Create a SAP Cloud Application Programming Model project
<!-- description --> Use the wizard for the SAP Cloud Application Programming Model to create a project for SAP HANA.

## Prerequisites
 - This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
 - You have logged into SAP Web IDE for SAP HANA. To find out more about SAP Web IDE and other tools in you SAP HANA, express edition instance, [refer to this tutorial](xsa-explore-basics). To learn more about SAP Web IDE Full-stack for HANA development [refer to this tutorial](hana-trial-advanced-analytics).
 - If you are planning on continuing the series in SAP HANA, express edition, it is recommended to [map the development space to the tenant database](xsa-tenant-db-space) **before starting development**.


## You will learn
  - How to create an application with the wizard for the Cloud Application Programming model
  - How to use the local Git repository for development/testing purposes

## Intro
The images in this tutorial are based on SAP HANA, express edition SPS04.

---

### Create a new project


Log into SAP Web IDE.

> The default URL for SAP Web IDE in SAP HANA, express edition is `https://hxehost:53075`. The default user is `XSA_DEV`

**Right-click** on `Workspace` and select `New-> Project from Template`

![New CAP model project](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/1.png)

Choose **SAP Cloud Platform Business Application** and click **Next**. (You may have to change the environment option in the wizard to Cloud Foundry if you are using the SAP Web IDE Full-stack)

![New CAP model project](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/2.png)

Use the following name for your project and click **Next**

```Name
MyHANAApp
```
> **This name will be used in different steps**. It is recommended that you do not change it unless you remember to replace it in future tasks.

![New CAP model project](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/3_4.png)

Choose `Node.js` as the service module and click **Finish**

![New CAP model project](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/4_4.png)


### Explore the generated artifacts


The wizard has generated a Multi-target Application with two modules: a database module and a service module. Expand them to familiarize yourself with the basic folder structure.

![New CAP model project](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/5.png)

The wizard has also populated the `mta.yaml` configuration file with the necessary dependencies and parameters for each module. Open it in the code editor to explore it.

![New CAP model project](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/6.png)

This file is the deployment descriptor and it is the glue that keeps all the micro-services together as a single application throughout its lifecycle. It declares the modules (applications or micro-services) and their dependencies with other micro-services or backing services. You can also use this file to inject variables into the environment variable `VCAP_SERVICES` of your application.

> This file is very sensitive to indentation and does not allow for tabs.




### Initialize local Git repository


You will use the local Git repository for basic version management.

**Right-click** on the project and choose **Git -> Initialize Local Repository**.

![Initialize Git](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/7.png)

You will be asked for an email address and user ID for a remote GitHub server. You can enter bogus values if you do not have an account in a remote GitHub repository.

![Initialize Git](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/8_x.png)

After a few seconds, you will see a success message in the top-right corner. Use the Git icon next to it to open the Git pane.

![Initialize Git](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/8.png)


### Perform your first commit


Each time you commit to the local or remote repository, you create a version. This will allow you to revert and compare any changes.
**It is recommended that you perform commits at the end of each tutorial.**


Add a commit message and click **Commit**:

![Initialize Git](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/xsa-cap-create-project/9.png)

> It is recommended to set a remote repository in, for example, GitHub. This will allow you to have a copy of your code outside your SAP HANA instance.

Click the console icon and look at the messages to complete the validation below.



---
