Skip to content

Commit

Permalink
Add more information to set up your hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
lijamie98 committed Aug 25, 2023
1 parent cd8e8ac commit 425876b
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions docs/01 - Contributing/A - Development Environment.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# How to set up the development environment

<!-- TOC -->

* [How to set up the development environment](#how-to-set-up-the-development-environment)
* [Install JDK 11](#install-jdk-11)
* [Checkout the Project](#checkout-the-project)
* [Set up `docker`](#set-up-docker)
* [Set up your hosts file](#set-up-your-hosts-file)
* [Build the Project with Gradle](#build-the-project-with-gradle)
* [Clean](#clean)
* [Build](#build)
* [Running Unit Tests](#running-unit-tests)
* [Set up the Git Hooks](#set-up-the-git-hooks)
* [Install JDK 11](#install-jdk-11)
* [Checkout the Project](#checkout-the-project)
* [Set up `docker`](#set-up-docker)
* [Set up your hosts file](#set-up-your-hosts-file)
* [Build the Project with Gradle](#build-the-project-with-gradle)
* [Clean](#clean)
* [Build](#build)
* [Running Unit Tests](#running-unit-tests)
* [Set up the Git Hooks](#set-up-the-git-hooks)
* [Set up the Development Environment with IntelliJ IDEA](#set-up-the-development-environment-with-intellij-idea)
* [Configuring Gradle on IntelliJ IDEA](#configuring-gradle-on-intellij-idea)
* [Run Configurations](#run-configurations)
* [Example: Debug the Platform Server](#example-debug-the-platform-server)
* [Example: Debug the Junit or the End-to-End Tests](#example-debug-the-junit-or-the-end-to-end-tests)
* [Running the Tests From Gradle in IntelliJ](#running-the-tests-from-gradle-in-intellij)
* [Configuring Gradle on IntelliJ IDEA](#configuring-gradle-on-intellij-idea)
* [Run Configurations](#run-configurations)
* [Example: Debug the Platform Server](#example-debug-the-platform-server)
* [Example: Debug the Junit or the End-to-End Tests](#example-debug-the-junit-or-the-end-to-end-tests)
* [Running the Tests From Gradle in IntelliJ](#running-the-tests-from-gradle-in-intellij)

<!-- TOC -->

## Install JDK 11
Expand Down Expand Up @@ -66,6 +68,9 @@ Docker version 23.0.5, build bc4487a
On macOS and Linux, you need to add the following entries to your `/etc/hosts` file. And on Windows, you need to add the
following entries to your `C:\Windows\System32\Drivers\etc\hosts` file.

These entries are needed to successfully run integration tests and end-2-end tests for the docker containers to
communicate with each other.

```shell
127.0.0.1 db
127.0.0.1 zookeeper
Expand Down Expand Up @@ -97,7 +102,6 @@ Run all tests: `./gradlew test`

Run subproject tests: `./gradlew :[subproject]:test`


## Set up the Git Hooks

In order to have consistent code style, we use [Google Java Format](https://github.com/google/google-java-format) to
Expand Down Expand Up @@ -199,5 +203,6 @@ To make sure your configuration worked, please make sure you can run all the tes
3. Right-click it and select the `run` or `debug` option:
![running-the-tests.png](/docs/resources/img/running-the-tests.png)
__Note__: You may need to check there is no active docker containers running on your machine from the previous debug sessions. If there are, please stop and delete them.
__Note__: You may need to check there is no active docker containers running on your machine from the previous debug
sessions. If there are, please stop and delete them.

0 comments on commit 425876b

Please sign in to comment.