Giter VIP home page Giter VIP logo

embl_ebi_practical_test's Introduction

embl_ebi_practical_test

The repo is to have the practical assessment of EMBL_EBI

Building, Testing and Running embl_ebi_practical_test

You will need:

If you are working from the Windows command line you must also install a Java JDK, and set the JAVA_HOME environment variable (please ensure it points to the JDK, and not the JRE) and the MVN_HOME environment variable. You may need to reboot your machine after setting these environment variables.

Ensure that you set your MAVEN_HOME environment variable, for example:

MAVEN_HOME=E:\Downloads\apache-maven-3.5.4-bin\apache-maven-3.5.4\

NOTE: 1.You can use Maven directly 2.application.properties has the db details and port number

and for any permission related item, Please use chmod command to give the permission in linux or mac machines in the terminal.

Building

To build the application from source clone or unzip the application and from navigate to the root directory.

mvn clean install -DskipTests

Testing

To run all tests, use:

mvn clean install

Running

To run embl_ebi_practical_test from the command line (assuming you have been able to build from the source code successfully)

run.bat or java -jar  target\restfulmicroservice-0.0.1-SNAPSHOT.jar

URL To Execute Application

Application: http://localhost:8080/swagger-ui.html

H2: http://localhost:8080/h2-console/

Use Auth controller to login with pre defined user and password

Jwt token is integrated. Use Authcontroller. Refer Swagger

username: user password: password

username: admin password: password

enter the token in the auth header 'Authorization: Bearer {{token}}' to proceed with api

Building, Testing and Running embl_ebi_practical_test from STS(Spring Tool Suite)

embl_ebi_practical_test' source comes with Maven configuration files which are recognized by Eclipse if the Eclipse Maven plugin (m2e) is installed.

At the command line, go to a directory not under your Eclipse workspace directory and check out the source:

git clone https://github.com/selvapuram/embl_ebi_practical_test.git

As embl_ebi_practical_test comes with some jars that need to be installed in Maven, run mvn clean install to install these first. (This only needs to be done once on your system.) Then in Eclipse, invoke the Import... command and select Existing Maven Projects.

Import a Maven project

Choose the root directory of your clone of the repository.

Select maven projects to import

To run and debug embl_ebi_practical_test from STS(Spring Tool Suite), spring boot dashboard has everything to run and debug.

Testing in Eclipse

You can run the server tests directly from Eclipse. right click on the source folder , select Run As -> Junit Test. This should open a new tab with the junit launcher running the embl_ebi_practical_test service tests.

Deployment

The current project has been deployed using heroku environment. It has been connected with github and pipeline has been setup. Staging only.

https://restfulmicroservices.herokuapp.com/swagger-ui.html

embl_ebi_practical_test's People

Contributors

selvapuram 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.