Giter Site home page Giter Site logo

mulxcode / agr_java_software Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alliance-genome/agr_java_software

0.0 1.0 0.0 8.49 MB

License: MIT License

Makefile 0.28% Java 46.57% CSS 2.51% JavaScript 47.42% HTML 0.31% Groovy 2.91% Dockerfile 0.01% Shell 0.01%

agr_java_software's Introduction

agr_java_software

Trouble shooting If the site is not responding: Could be that wildfly (application server) is called before it is fully started: Solution: Restart wildfly

How to setup and build the API on a local system

  1. Install docker, maven and java 11
  2. Start up a Neo4j database image (for BUILD / master repository): -docker run -it -p 7474:7474 -p 7687:7687 --env NEO4J_AUTH=none -e NEO4J_dbms_memory_pagecache_size=8g -e NEO4J_dbms_memory_heap_maxSize=6g ${REG}/agr_neo4j_data_image:build
  3. Start up an infinispan docker image (for BUILD / master repository): docker run -p 11222:11222 -it --name infinispan -e JAVA_OPTS="-Xmx16g" ${REG}/agr_infinispan_data_image:build This image contains the latest cache values done on a BUILD pipeline. You can use it as is. If you made changes in the caching logic you need to run the cacher
  4. Run the cache (unless you want to use the cache values as you can find them in the current infinispan docker image): First build the cacher via make cacher then run the individual cachers, e.g. via java -Xmx16g -jar agr_cacher/target/agr_cacher-jar-with-dependencies.jar ExpressionCacher when creating the expression annotations. The other entities are run with the following values (last command line option)
    • DiseaseCacher
    • AlleleCacher
    • GenePhenotypeCacher
    • InteractionCacher
    • GeneOrthologCacher
    • ExpressionCacher
    • ModelCacher
    • EcoCodeCacher
    • ClosureCacher
    • SiteMapCacher
  5. Change directory into the agr_java_software directory
  6. Build the API make api
  7. Change directory into agr_java_software/agr_api
  8. Copy app.properties.defaults to app.properties and customize the configuration as needed. Note: if you are developing on your local desktop and are running Neo and infinispan locally remove the following two property variables:
    • NEO4J_HOST=build.alliancegenome.org
    • CACHE_HOST=build.alliancegenome.org so the local instances are used for the API server.
  9. Start app server (thorntail): make run If you want to be able to debug into the app server use make debug and remote connect to port 5045.
  10. Now you can call API endpoints, e.g. http://localhost:8080/api/gene/MGI:109583/alleles

agr_java_software's People

Contributors

adamgibs avatar adamjohnwright avatar christabone avatar cmpich avatar dependabot[bot] avatar fb-ping avatar felixgondwe avatar jt15 avatar kevinschaper avatar kkarra avatar mluypaert avatar oblodgett avatar paaatrick avatar prmani avatar sierra-moxon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.