# Environment Set up
source: https://developer.mastercard.com/priceless-planet-carbon-tracker/tutorial/api-testing/step1/index.md
## Environment Setup {#environment-setup}
### 1. Create a Maven Project {#1-create-a-maven-project}
* In the IDE, create a new Maven project (for example, **TestCarbonCalculatorExperienceTutorial**) which sets your directory structure automatically.
* Provide an ArtifactId and a project name as per your choice.
### 2. Add Resources {#2-add-resources}
* Add the Carbon Calculator Experience [Open Specification](https://developer.mastercard.com/priceless-planet-carbon-tracker/documentation/api-reference/index.md) to your Maven project resources folder.
* Add the generated sandbox key (**.p12 file** ), Mastercard encryption key (**.p12 file** ), and encryption certificate (**.pem file**) to your Maven project resources folder. (This is generated while creating the project on Mastercard Developers).
* Your Maven project directory structure should appear as:

### 3. Update the pom.xml file {#3-update-the-pomxml-file}
* In your IDE, add the [OpenAPI Generator maven plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin) to your project **pom.xml** file. To add the plugin, use the plugin configuration as shown below: Note: [OpenAPI Generator](https://openapi-generator.tech/) generates API client libraries using the OpenAPI Specification. It provides multiple generators and library templates to support multiple languages and frameworks. We will be using the Java generator for this project.
```py
org.openapitools
openapi-generator-maven-plugin
4.3.1
Carbon tracker REST Client
generate
${project.basedir}/src/main/resources/carbon-calculator-experience-api-swagger.yaml
java
false
false
src/gen/java/main
true
true
false
java8
true
false
false
true
Date=LocalDate
```
* Add the following dependencies to your **pom.xml** file.
```XML
17
3.4.0
1.18.36
4.12.0
3.11
1.3.2
1.5.1
1.5.0
4.13.1
2.11.0
1.8.5
1.6.14
1.3.2
UTF-8
com.mastercard.developers.carbontracker
0.2.1
17
17
org.springframework.boot
spring-boot-starter-web
${spring.boot.version}
org.springframework.boot
spring-boot-devtools
${spring.boot.version}
runtime
true
org.springframework.data
spring-data-commons
3.4.0
org.projectlombok
lombok
${org.projectlombok.version}
true
com.squareup.okhttp3
okhttp
${okhttp-version}
com.squareup.okhttp3
logging-interceptor
${okhttp-version}
com.google.code.gson
gson
${gson-version}
io.gsonfire
gson-fire
${gson-fire-version}
org.apache.commons
commons-lang3
${commons-lang3-version}
javax.annotation
javax.annotation-api
${javax-annotation-version}
com.mastercard.developer
oauth1-signer
${oauth1-signer-version}
com.mastercard.developer
client-encryption
${client-encryption-version}
io.swagger
swagger-annotations
${swagger-core-version}
com.google.code.findbugs
jsr305
3.0.2
org.openapitools
jackson-databind-nullable
${jackson-databind-nullable-version}
commons-io
commons-io
2.18.0
net.bytebuddy
byte-buddy
1.10.20
```
Refer to the following page for more information on [Generating and Configuring a Mastercard API Client](https://developer.mastercard.com/platform/documentation/security-and-authentication/generating-and-configuring-a-mastercard-api-client/#overview).