Skip to content

Commit

Permalink
PIP-352 Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcgihtsdo authored and QuyenLy87 committed Oct 25, 2024
1 parent fb7f9c7 commit e0138b6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 17 deletions.
5 changes: 4 additions & 1 deletion docs/configuration-guide.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Configuration Guide

This document will detail how to set up the application locally.
This document will detail how to configure a MySQL database.

### Create a new database using Docker
```bash
Expand Down Expand Up @@ -32,6 +32,9 @@ docker exec -i mysql-rvf mysql -u root -p$MYSQL_ROOT_PASSWORD -e "GRANT ALL PRIV

```

### Create a new database using source
Alternatively, follow the steps described on [this page](https://dev.mysql.com/doc/refman/8.0/en/installing.html) to install and configure MySQL 8.

If the MySQL database has been set up outside of Docker, the command to update the user's privileges will still need
run:

Expand Down
36 changes: 20 additions & 16 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
# Getting started

This document will detail how to get started.

## Prerequisites
- Java 17
- Maven 3

## Setup
### Install Mysql 8.0
RVF requires a local MySQL database to be available.
#### Download and install [MySQL 8.0](https://dev.mysql.com/doc/refman/8.0/en/installing.html)
#### Or use brew on macOS
```bash
brew install [email protected]
```
## Dependencies
- MySQL 8.0
- Assertions

#### MySQL 8.0
Install and configure a MySQL database [as described here](configuration-guide.md).

Following [this](configuration-guide.md) to set up the database and user.
#### Assertions
Install and configure the snomed-release-validation-assertions repository [as described here](importing-assertions.md).

### Build RVF
## Running
Once the prerequisites & dependencies have been configured, simply build & run the application.

#### From source code
```bash
mvn clean install
mvn clean package
```

### Import assertions
[Follow instructions here](importing-assertions.md).

### Start RVF application

```bash
java -Xms1024m -Xmx8g -Daws.region=us-east-1 -jar target/release-validation-framework*.jar --server.port=8081 --server.servlet.context-path=/api
```

#### From Docker
```bash
docker-compose up -d
```
4 changes: 4 additions & 0 deletions docs/importing-assertions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Importing Assertions

This document will detail how to install & configure assertions.

# Importing SNOMED Release Validation Assertions

RVF assertions are in github [snomed-release-validation-assertions](https://github.com/IHTSDO/snomed-release-validation-assertions)
Expand Down

0 comments on commit e0138b6

Please sign in to comment.