Front-end can be found here.
-
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: 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
- Create an account on MS Azure.
- Create a CosmosDB resource, follow the instructions mentioned here from Microsoft.
- Download and install Docker desktop, follow the instructions mentioned here on official Docker website.
- Start docker desktop
- Go to your terminal/command prompt and run:
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
. - Make sure you have Java 17 or above installed.
- Create a directory where you want to place the
.jar
. - Create an email account (Doesn't have to be Gmail, it can be anything) which you would want the application to use to send emails to users.
- In that directory create a file named
application.yml
. Yourapplication.yml
should look like this:
spring:
cloud:
azure:
cosmos:
endpoint: <your cosmos DB end-point>
key: <your cosmos DB key>
database: <your database Name>
populate-query-metrics: true
application:
security:
jwt:
key: <choose a random long string>
email:
password: <email account password>
accountId: [email protected]
ui:
port: <Fron-end service port number>
- For the port number of front-end service refer to the README of that service.
- To run this service, from your command prompt/terminal, fire the
following:
java -jar alexandria-0.0.1-SNAPSHOT.jar --spring.config.location=application.yml