This module publishes the REST API services for ProtVar. This application internally calls UniProt rest API's as well as PDBe API to map protein, gene, variation and structural data together.
It provides various endpoints but response structure remains same. These endpoints can be accessed programmatically, as well as ProtVar website (frontend - https://github.com/ebi-uniprot/protvar-fe) calls these endpoints to display data on screen.
It is a spring boot application. The Main class is uk.ac.ebi.protvar.ApplicationMainClass
- Clone repo
- Crete file src/main/resources/application-local.properties
- Override following three properties
- protvar.datasource.jdbc-url
- protvar.datasource.username
- protvar.datasource.password
- Start the application using mvn spring-boot:run
- We are using gatling to test application
- Use mvn gatling:test -Dgatling.simulationClass=uk.ac.ebi.protvar.gatling.simulations.BasicSimulation
- or mvn gatling:test
To deploy to development environment:
- Merge or commit changes directly to the
dev
branch. - Gitlab CI/CD pipeline will execute deployment to the dev environment.
- It may take a couple of minutes for the Gitlab mirror repository to refresh from the Github repository.
- To check deployment:
- either check Gitlab CI/CD
- or run
helm status protvar-be
and check the last deployed to confirm.
To deploy to production environment:
- Merge or commit changes to the main branch.
- The same automated CI/CD process as above will execute for production.