- Install Intellij Ultimate version from their website
- Install
sdkman:curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh"
- Install
Java 11.0.x:sdk install java 11.0.11.hs-adpt
- Install
sbt 1.6.2or the version mentioned inproject/build.properties:sdk install sbt 1.6.2
- Install
PostgreSQL 14:- MacOS (Make default username and password
postgresandpostgresrespectively) - Ubuntu:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - RELEASE=$(lsb_release -cs) echo "deb http://apt.postgresql.org/pub/repos/apt/ ${RELEASE}"-pgdg main | sudo tee /etc/apt/sources.list.d/pgdg.list sudo apt update sudo apt -y install postgresql-14 sudo su - postgres or psql -U postgres psql -c "alter user postgres with password 'postgres'" exit
- MacOS (Make default username and password
- Click on
Databaseon right then on+->DataSource->PostgreSQL - Fill the following:
User:postgresPassword:postgresURL:jdbc:postgresql://localhost:5432/postgresDatabase:postgresSave:Forever- Do
Test Connectionthis should succeed. ThenApply->OK
- Select
0.sqlcontents and execute inconsole - Update
MantlePlace.run.xmlwith correct values and the run by selectingMantlePlace configurationand clicking Run icon next to it. Debug is next to it. - Click on
Databaseon right then onstack + wrench, go toSchemaand selectmantlePlaceand all its tables to view.
sudo su - postgrespsql- Copy contents of
0.sqland paste there \qexit- Set all the environment variables in
application.conf(They are of form${NAME}) - Create binary for client:
- Go to project directory in terminal.
sbt cleansbt dist- You get a
assetMantle-1.0.zipfile which contains binary file inbinfolder.
- Modify
applicaltion.confas per the requirements. - Run
./persistenceclient
-
Install docker on your machine
-
Macos: get it from here https://docs.docker.com/desktop/mac/install/
-
Linux
curl -sL get.docker.com | sudo bash docker buildx install docker version docker buildx version -
-
Install
docker-composeon your machine-
Macos: get it from here https://docs.docker.com/compose/install/
-
Linux
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d : -f2 | cut -d , -f1 | xargs)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose docker-compose version -
Before running the mantleplace on your local, make sure that your postgresql database is enabled.
docker-compose up