-
Install IntelliJ CE.
-
Install Oracle OpenJDK 18
-
Set Language level 17 in Project settings
-
Install
Maven
:brew install maven
for macOS.- Maven for windows
-
Build the project:
mvn clean install
-
Create a file named
application-local.yml
:spring: cloud: azure: cosmos: endpoint: https://csci-4440-sdd.documents.azure.com:443/ key: database: populate-query-metrics: true
-
Download and install Docker desktop.
-
Run local elastic-search cluster on docker:
docker run -p 9200:9200 \ -e "discovery.type=single-node" \ docker.elastic.co/elasticsearch/elasticsearch:7.10.0
. -
Verify that ES cluster is running:
http://localhost:9200
. -
Set application run configuration to
local
using the following flag:spring.profiles.active=local
.
Note: Always run mvn spring-javaformat:apply
to format code across codebase and to keep all formatting consistent.
To run from the terminal:
mvn spring-boot:run -Dspring-boot.run.profiles=local