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.
-
Open Config.properties.
-
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>
1. Create the binary(zip, tar.gz) file.
2. Run the app42 deploy command.
$ app42 deploy
$ Enter App Name: <your_app_name>
$ 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.
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.