- 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.2
or the version mentioned inproject/build.properties
:sdk install sbt 1.6.2
- Install
PostgreSQL 14
:- MacOS (Make default username and password
postgres
andpostgres
respectively) - 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
Database
on right then on+
->DataSource
->PostgreSQL
- Fill the following:
User
:postgres
Password
:postgres
URL
:jdbc:postgresql://localhost:5432/postgres
Database
:postgres
Save
:Forever
- Do
Test Connection
this should succeed. ThenApply
->OK
- Select
0.sql
contents and execute inconsole
- Update
MantlePlace.run.xml
with correct values and the run by selectingMantlePlace configuration
and clicking Run icon next to it. Debug is next to it. - Click on
Database
on right then onstack + wrench
, go toSchema
and selectmantlePlace
and all its tables to view.
sudo su - postgres
psql
- Copy contents of
0.sql
and paste there \q
exit
- Set all the environment variables in
application.conf
(They are of form${NAME}
) - Create binary for client:
- Go to project directory in terminal.
sbt clean
sbt dist
- You get a
assetMantle-1.0.zip
file which contains binary file inbin
folder.
- Modify
applicaltion.conf
as 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-compose
on 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