Giter Site home page Giter Site logo

adi9235 / spring3hibernate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opstree/spring3hibernate

0.0 1.0 0.0 131 KB

A java loaded application for various testing purpose

Home Page: https://opstree.github.io

License: Apache License 2.0

Shell 1.87% Java 73.95% HTML 0.05% HCL 22.46% Dockerfile 1.67%

spring3hibernate's Introduction

Spring3Hibernate - A OpsTree Sample Maven based Java Application

The main goal of this awesome Java Webapp is to encourage people to dive deep in Java Application Architecture and how we can make delivery pipeline faster, easier and much reliable using Continous Integration.

Dependencies

The list of dependencies are not quite long but yes we do have some dependencies.

  • Maven 3.X
  • Java8 or Java11
  • MySQL
  • Docker(Only if you are willing to create a Dockerized Setup)

Needs to be Taken Care

This application connects with MySQL database. If you want to have a full-fledged running application, just do me a favor and edit these properties according to your database environment.

database.driver=com.mysql.jdbc.Driver
database.url=jdbc:mysql://mysql.okts-test:3306/employeedb
database.user=root
database.password=password
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=update
upload.dir=c:/uploads

Note:- The location of file is src/main/resources/database.properties

How to Run

Manual Setup

Running this application manually is pretty straight forward.

For Compilation

mvn clean package

For Unit Tests

mvn test

For Deploying Artifact on Remote Repository

mvn deploy

There is some other cool stuff as well but I leave that up to you to explore it.

Dockerized Setup

Dockerized setup is much classier than manual setup. To achieve this you just have to do this:-

docker build -t opstree/spring3hibernate:latest -f Dockerfile .

That's it. It will create Tomcat Image having the war itself. Now just go and deploy the docker image anywhere you want.

Docker Compose Setup

docker-compose build
docker-compose up 

The compose file will spinup three containers:

  1. Nginx (Ingress)
  2. Spring3Hibernate (JAVA APP)
  3. MySql (Database)

spring3hibernate's People

Contributors

cpriyanshi07 avatar iamabhishek-dubey avatar iamsudipt avatar jettaabhishek avatar neha-sinha20 avatar sandy724 avatar shankar-1711 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.