@@ -8,10 +8,9 @@ Look at the [contribution guide](CONTRIBUTING.md).
## Install development environment
### Install node and npm
install nvm
- Install `node` and `npm`
go to :
Installation via `nvm` is recommended for easier control of installed version:
https://github.com/creationix/nvm
```sh
...
...
@@ -19,33 +18,51 @@ nvm install 10.13.0
nvm use v10.13.0
```
### Install Angular CLI
- Install Angular CLI
```sh
npm install-g @angular/cli@7.0.6
```
### Install JS dependencies
- Install JS dependencies
```sh
cd frontend
npm install
```
### Install Java JDK8
- Install latest Java JDK8
See instructions for your operating system
See latest instructions for your operating system.
- (Optional) Install `docker` and `docker-compose`
If you want to run an Elasticsearch and Kibana instance on your machine.
You can use your favorite package manager for that
## Run backend development server
If you just need access to API (to run the Angular serve on top) without the frontend interface, you can run:
First make sure you have access to an Elasticsearch HTTP API server on `http://127.0.0.1:9200` (either via ssh tunneling or by running a local server).
If you want to run an Elasticsearch server on your development machine you can use the `docker`/`docker-compose` configuration like so:
```sh
docker-compose up
```
> This will launch an Elasticsearch server (with port forwarding `9200` and `9300`) and a Kibana server (with port forwarding `5601`)
> **Warning**: This repository does not automatically index data into Elasticsearch, you need to prepare your indices beforehand.
If you just need access to API (to run the `ng serve` on top of it), you can run:
```sh
./gradlew bootRun
```
Otherwise, for the complete server (backend API + frontend interface), you can run:
Otherwise, for the complete server (backend APIs + frontend interface), you can run: