Coder Social home page Coder Social logo

app42paas-java-mysql-sample's Introduction

Getting Started with App42PaaS-Java-MySQL-Sample Application:

This application is basically a simple User Input Form that takes input from user and saves it in database.

Download the source code from git.

Note: This project is build with java 6.

STS/Eclipse Configuration:

In order to configure this application following steps are to be done:

     1. Import the project in STS/Eclipse.

     2. Right click on the Project and go to properties.

     3. Under java build path, Configure your Tomcat and Java path.

Note: For Eclipse, you have to enable Java Web applications (download the addon).

Maven Configuration:

In order to create pom.xml, following steps are to be done:

	1. Import the project in STS/Eclipse.
	
	2. Right click on the Project and under Configure click convert to maven project.
	
	3. Edit your pom.xml settings and you are ready to go.

Project Configuration:

     1. Open Config.properties (located in WebContent folder).

     2. Update the details of your MySql service in it.

              app42.paas.db.username = <your_database_username>
              app42.paas.db.port = <your_service_port>
              app42.paas.db.password = <your_database_password>
              app42.paas.db.ip = <your_service_ip>
              app42.paas.db.name = <your_database_name>

Generating War File using STS/Eclipse:

     1. Right click on the project and click export.
     
     2. Under web, select WAR file.
     
     3. Enter the destination path and click on the finish button. Your war is ready.

Generating War File using Maven:

	1. First create pom.xml.
	
	2. Run the following command:
	
		mvn clean
		mvn install

Deploying Application on App42 PaaS using Binary:

	1. Create war file.
	
	2. Run the app42 deploy command.
	
			  $ app42 deploy
              $ Enter App Name: <your_app_name>
			  $ 1: Binary
			  $	2: Source
			  $ Choose Upload Type [Binary]: 1
              $ Would you like to deploy from the current directory? [Yn]: n
              $ Binary Deployment Path: <your_binary_path>
              $ This process may take a while, be patient with it.
              $ Deploying Application... OK
              $ Please wait it may take few minutes.
              $ Latest Status....|
              $ App deployed successfully.

Deploying Application on App42 PaaS using Source (Git):

1. Run the app42 deploy command.

			  $ app42 deploy
              $ Enter App Name: <your_app_name>
			  $ 1: Binary
			  $	2: Source
			  $ Choose Upload Type [Binary]: 2
			  $ Enter Git URL?: <your_public_git_url>
			  $ Deploying Application... OK
              $ Please wait it may take few minutes.
              $ Latest Status....|
              $ App deployed successfully.

app42paas-java-mysql-sample's People

Contributors

rohitrshephertz avatar deotshephertz avatar iankesh avatar naveengshephertz 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.