This version is forked from Manchester University Lirary
Some modificaiton added for simpler development exploration.
Install Java development tools
git clone https://github.com/digital-york/OACP.git
For example in Exlipse IDE folow:
Eclipse-->"File"-->"Existing Maven Projects"
For example with docker
docker pull postgres
docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=<password> postgres
docker ps
- List all running Docker containers.docker stop postgres
- Stop the PostgreSQL container.docker start postgres
- Start the PostgreSQL container.docker rm postgres
- Delete the PostgreSQL container.
Connect with local PostSLQ DB
psql -U postgres -h localhost -p 5432
Create DB
CREATE DATABASE oacp;
Set expected varianles as per src/main/resources/application.properties
file. Note default configuration require setting up some shell variables so that password are not stored in source code reopository.
In Linux/MacOS
export DB_USER="postgres - e.g or other PostgreSQL Admin user as configured in Docker"
export DB_PASSWORD="...."
export SCHOLARLY_API_KEY="..."
export PURE_URL="..."
export PURE_API_KEY="..."
export PURE_USER="..."
export PURE_PASSWORD="..."
With Maven cli:
mvn spring-boot:run
Open localhost url http://localhost:8080
Search for example pureId: 99829207, 99569551, 99568563, 99568343, 99567735