You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Only Non-SNAPSHOT dependencies should be presented in POM.xml on release branches/tags.
80
80
81
+
### Development Quick Start Guide
82
+
83
+
To start the application locally, the following quick steps (all commands are executed from repository root directory)
84
+
85
+
1. Ensure that you have the following tools installed: Java 1.8, maven (check via `mvn -v`), docker-ce (check via `docker -v`), psql command line client
86
+
(check via psql --version) or other tool that allows to connect to postgres DB.
87
+
2. Run `mvn clean install` and make sure it completes successfully, resolve dependency issues if any.
88
+
3. Create a new database in docker: `docker create --name postgres-webapi -p 8432:5432 -e POSTGRES_PASSWORD=ohdsi postgres:15.0-alpine`.
89
+
4. Start DB container: `docker start postgres-webapi`.
90
+
Verify that you can connect via psql console (`PGPASSWORD='ohdsi' psql -d postgresql://localhost:8432/?user=postgres`).
91
+
5. If your default java version is too high (e.g. 17), set JAVA_HOME to point to 1.8 installaction, for example `export JAVA_HOME=/usr/lib/jvm/zulu8-ca-amd64`
8. Grant this newly created user admin privileges by running the following sql `INSERT INTO sec_user_role (user_id, role_id, origin) VALUES (1000, 2, 'SYSTEM');`
95
+
and log in again.
96
+
97
+
At this point you have the application running and admin account operational. To actually use it, additional steps are required to set up privileges
98
+
and at least one CDM database. They are covered in the respective documentation sections.
0 commit comments