<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Selvi K on Medium]]></title>
        <description><![CDATA[Stories by Selvi K on Medium]]></description>
        <link>https://medium.com/@ponmalarselvi?source=rss-9655dbb04fa6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Vw8QtUXDkLTd6oEaWuKspg.jpeg</url>
            <title>Stories by Selvi K on Medium</title>
            <link>https://medium.com/@ponmalarselvi?source=rss-9655dbb04fa6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:55:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ponmalarselvi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[API Automation With Cucumber 6, Rest-Assured and Allure-Report]]></title>
            <link>https://medium.com/@ponmalarselvi/api-automation-with-cucumber-6-rest-assured-and-allure-report-8c04e5aab52e?source=rss-9655dbb04fa6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c04e5aab52e</guid>
            <dc:creator><![CDATA[Selvi K]]></dc:creator>
            <pubDate>Fri, 06 Aug 2021 14:59:34 GMT</pubDate>
            <atom:updated>2021-08-06T14:59:34.403Z</atom:updated>
            <content:encoded><![CDATA[<p>You are going to learn to setup a java project with Cucumber 6, Rest-Assured and Allure-Report.</p><p><strong>Required Software:</strong></p><ul><li><a href="https://anote.dev/install-jdk-11-apache-maven-3-6/">Install JDK 11 &amp; Apache Maven 3.6</a></li><li><a href="https://www.guru99.com/install-eclipse-java.html">Eclipse</a></li><li><a href="https://docs.qameta.io/allure/#_installing_a_commandline">Allure</a></li><li>Clone/download the backend API <a href="https://github.com/ponmalarselvi/lms-admin-rest-service">lms-admin-rest-service</a></li></ul><p><strong>Allure — </strong>an open-source framework designed to create test execution reports</p><p><strong>Allure Installation:</strong></p><ul><li>Download the latest version as zip archive from <a href="https://repo1.maven.org/maven2/io/qameta/allure/allure-commandline/">Maven Central</a>. (this project used <a href="https://repo1.maven.org/maven2/io/qameta/allure/allure-commandline/2.14.0/allure-commandline-2.14.0.zip">allure-commandline-2.14.0</a></li><li>Unpack the archive to allure-commandline directory.</li><li>Navigate to bin directory.</li><li>Set the bin paths of allure folders in path environment variables</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*iu2Uf1P8KiQThLpAu9r5tw.png" /><figcaption>allure- environment path variable setup</figcaption></figure><ul><li>Check the allure version in command line using</li></ul><pre>allure — version</pre><p><strong>Project Setup:</strong></p><p><strong>Create Maven Project:</strong></p><ol><li>Open your Eclipse.</li><li>Click on File -&gt; New -&gt; Other.</li><li>In Select a wizard window -&gt; search Maven project -&gt; Select Maven Project -&gt; click Next</li><li>New Maven Project window -&gt; click create a simple project →click Next</li><li>Enter Group Id and Artifact Id and Finish.</li><li>Under the src/test/resources directory create a new directory called as features</li><li>Add a new package called StepDefinitions under src/test/java .</li><li>Add a new package called Runner under src/test/java.</li></ol><p><strong>Maven Dependencies :</strong></p><p>Please add the below dependencies in pom.xml</p><ol><li>rest-assured</li></ol><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;io.rest-assured&lt;/groupId&gt;<br>    &lt;artifactId&gt;rest-assured&lt;/artifactId&gt;<br>    &lt;version&gt;4.4.0&lt;/version&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;io.rest-assured&lt;/groupId&gt;<br>    &lt;artifactId&gt;json-path&lt;/artifactId&gt;<br>    &lt;version&gt;4.4.0&lt;/version&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;io.rest-assured&lt;/groupId&gt;<br>    &lt;artifactId&gt;json-schema-validator&lt;/artifactId&gt;<br>    &lt;version&gt;4.4.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>2. json-simple</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;<br>    &lt;artifactId&gt;json-simple&lt;/artifactId&gt;<br>    &lt;version&gt;1.1.1&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>3. cucumber</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;io.cucumber&lt;/groupId&gt;<br>    &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;<br>    &lt;version&gt;6.10.4&lt;/version&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;io.cucumber&lt;/groupId&gt;<br>    &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;<br>    &lt;version&gt;6.10.4&lt;/version&gt;<br>    &lt;scope&gt;test&lt;/scope&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;io.qameta.allure&lt;/groupId&gt;<br>    &lt;artifactId&gt;allure-cucumber6-jvm&lt;/artifactId&gt;<br>    &lt;version&gt;2.13.6&lt;/version&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;io.qameta.allure&lt;/groupId&gt;<br>    &lt;artifactId&gt;allure-cucumber6-jvm&lt;/artifactId&gt;<br>    &lt;version&gt;2.13.6&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>4. Junit</p><pre>&lt;dependency&gt;<br>	&lt;groupId&gt;junit&lt;/groupId&gt;<br>	&lt;artifactId&gt;junit&lt;/artifactId&gt;<br>	&lt;version&gt;4.13.2&lt;/version&gt;<br>	&lt;scope&gt;test&lt;/scope&gt;<br>&lt;/dependency&gt;</pre><p><strong>Maven Plugins:</strong></p><p>Please add below plugins in pom.xml</p><p>1.maven-compiler-plugin</p><pre>&lt;plugin&gt;<br>	&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>	&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;<br>	&lt;configuration&gt;<br>		&lt;source&gt;11&lt;/source&gt;<br>		&lt;target&gt;11&lt;/target&gt;<br>	&lt;/configuration&gt;<br>&lt;/plugin&gt;</pre><p>2.maven-surefire-plugin</p><pre>&lt;plugin&gt;<br>	&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>	&lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;<br>	&lt;version&gt;3.0.0-M5&lt;/version&gt;<br>	&lt;configuration&gt;<br>		&lt;systemProperties&gt;<br>			&lt;property&gt;<br>				&lt;name&gt;allure.results.directory&lt;/name&gt;<br>				&lt;value&gt;${project.build.directory}/allure-results&lt;/value&gt;<br>			&lt;/property&gt;<br>			&lt;property&gt;<br>				&lt;name&gt;allure.link.issue.pattern&lt;/name&gt;<br>				&lt;value&gt;https://example.org/issue/{}&lt;/value&gt;<br>			&lt;/property&gt;<br>			&lt;property&gt;<br>				&lt;name&gt;allure.link.tms.pattern&lt;/name&gt;<br>				&lt;value&gt;https://example.org/tms/{}&lt;/value&gt;<br>			&lt;/property&gt;<br>		&lt;/systemProperties&gt;<br>		&lt;testFailureIgnore&gt;true&lt;/testFailureIgnore&gt;<br>		&lt;argLine&gt;<br>						-javaagent:&quot;${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar&quot;<br>						-Dcucumber.plugin=&quot;io.qameta.allure.cucumber6jvm.AllureCucumber6Jvm&quot;<br>		&lt;/argLine&gt;<br>	&lt;/configuration&gt;<br>	&lt;dependencies&gt;<br>		&lt;dependency&gt;<br>			&lt;groupId&gt;org.aspectj&lt;/groupId&gt;<br>			&lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;<br>			&lt;version&gt;1.9.7&lt;/version&gt;<br>		&lt;/dependency&gt;<br>	&lt;/dependencies&gt;<br>&lt;/plugin&gt;</pre><p>Reference <a href="https://github.com/ponmalarselvi/lms.admin.cucumber.restassured.testing/blob/main/lms.admin.cucumber.restassured.testing/pom.xml">pom.xml</a></p><p>Please test the project dependency -&gt; Right click pom.xml → Run as -&gt; Maven install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*_qQK0Na8QZ8mnPlzXjlhag.png" /></figure><h3>Writing your first Feature File :</h3><p>Lets now start by creating it Right click on the src/test/resources/features directory and New -&gt; File -&gt; End2End_Test.feature</p><p><strong>End2End_Test.feature</strong></p><pre>Feature: End to End Tests for Lms admin rest service API</pre><pre>Scenario: Authorized User is able to view all program list<br>	When load all the programs<br>	Then all programs are displayed<br>	<br>Scenario: Authorized User is able to add program<br>	When Authorized User add program<br>	Then program is added</pre><pre>Scenario: Authorized User is able to view program<br>	When Authorized User view program<br>	Then program is displayed</pre><pre>Scenario: Authorized User is able to update program<br>	When Authorized User update program<br>	Then program is updated</pre><pre>Scenario: Authorized User is able to delete program<br>	When Authorized User delete program<br>	Then program is deleted</pre><p><strong>Execute Feature File:</strong></p><p>For running feature file select feature file -&gt; Run As -&gt; Cucumber Feature</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*2M9N0DLBOVTocgZ4p7GMug.png" /></figure><ul><li>You will get the code suggestion in console window like below</li></ul><pre>You can implement missing steps with the snippets below:</pre><pre>@When(&quot;load all the programs&quot;)<br>public void load_all_the_programs() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@Then(&quot;all programs are displayed&quot;)<br>public void all_programs_are_displayed() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@When(&quot;Authorized User add program&quot;)<br>public void authorized_user_add_program() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@Then(&quot;program is added&quot;)<br>public void program_is_added() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@When(&quot;Authorized User view program&quot;)<br>public void authorized_user_view_program() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@Then(&quot;program is displayed&quot;)<br>public void program_is_displayed() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@When(&quot;Authorized User update program&quot;)<br>public void authorized_user_update_program() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@Then(&quot;program is updated&quot;)<br>public void program_is_updated() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@When(&quot;Authorized User delete program&quot;)<br>public void authorized_user_delete_program() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><pre>@Then(&quot;program is deleted&quot;)<br>public void program_is_deleted() {<br>    // Write code here that turns the phrase above into concrete actions<br>    throw new io.cucumber.java.PendingException();<br>}</pre><ul><li>Create step definition class file <strong>Steps </strong>in StepDefinitions package and paste the suggested code like below</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*uyzJGTHjTl0zKjfT.png" /></figure><ul><li>Modify the code to get output from Rest API using rest-assured library</li><li>Please refer below code for getting output from Rest API using rest-assured library and <a href="https://github.com/ponmalarselvi/lms.admin.cucumber.restassured.testing/blob/main/lms.admin.cucumber.restassured.testing/src/test/java/stepDefinitions/Steps.java">Steps.java</a></li></ul><pre>package stepDefinitions;</pre><pre>import static io.restassured.RestAssured.given;</pre><pre>import org.json.simple.JSONObject;<br>import org.junit.Assert;</pre><pre>import io.cucumber.java.en.Then;<br>import io.cucumber.java.en.When;<br>import io.restassured.path.json.JsonPath;<br>import io.restassured.response.Response;</pre><pre>public class Steps {</pre><pre>	private static Response response;</pre><pre>	private static final String BASE_URL = &quot;https://lms-admin-rest-service.herokuapp.com&quot;;<br>	private static final String USERNAME = &quot;admin&quot;;<br>	private static final String PASSWORD = &quot;password&quot;;<br>	private static int programId = 0;</pre><pre>	@When(&quot;load all the programs&quot;)<br>	public void load_all_the_programs() {<br>		response = given().auth().basic(USERNAME, PASSWORD).when().get(BASE_URL + &quot;/programs&quot;);<br>	}</pre><pre>	@Then(&quot;all programs are displayed&quot;)<br>	public void all_programs_are_displayed() {<br>		String programId = response.jsonPath().getString(&quot;programId[0]&quot;);<br>		Assert.assertNotNull(programId);<br>	}</pre><pre>	@When(&quot;Authorized User add program&quot;)<br>	public void authorized_user_add_program() {</pre><pre>		JSONObject request = new JSONObject();<br>		request.put(&quot;programName&quot;, &quot;cucumber learning&quot;);<br>		request.put(&quot;programDescription&quot;, &quot;cucumber learning&quot;);<br>		request.put(&quot;isOnline&quot;, false);</pre><pre>		response = given().auth().basic(USERNAME, PASSWORD).header(&quot;Content-type&quot;, &quot;application/json&quot;).and()<br>				.body(request).when().post(BASE_URL + &quot;/programs&quot;).then().extract().response();</pre><pre>		System.out.println(&quot;Response Body is: &quot; + response.getBody().asString());</pre><pre>	}</pre><pre>	@Then(&quot;program is added&quot;)<br>	public void program_is_added() {<br>		JsonPath jsonPathEvaluator = response.jsonPath();</pre><pre>		Integer apiProgramId = jsonPathEvaluator.get(&quot;programId&quot;);</pre><pre>		Assert.assertNotNull(apiProgramId);<br>		programId = apiProgramId.intValue();<br>	}</pre><pre>	@When(&quot;Authorized User view program&quot;)<br>	public void authorized_user_view_program() {</pre><pre>		response = given().auth().basic(&quot;admin&quot;, &quot;password&quot;).when().get(BASE_URL + &quot;/programs/&quot; + programId);</pre><pre>		System.out.println(response.asString());</pre><pre>	}</pre><pre>	@Then(&quot;program is displayed&quot;)<br>	public void program_is_displayed() {<br>		// First get the JsonPath object instance from the Response interface<br>		JsonPath jsonPathEvaluator = response.jsonPath();</pre><pre>		// Then simply query the JsonPath object to get a String value of the node<br>		// specified by JsonPath: programId (Note: You should not put $. in the Java<br>		// code)<br>		Integer apiProgramId = jsonPathEvaluator.get(&quot;programId&quot;);</pre><pre>		// Validate the response<br>		Assert.assertNotNull(apiProgramId);<br>		Assert.assertTrue(programId == apiProgramId.intValue());<br>	}</pre><pre>	@When(&quot;Authorized User update program&quot;)<br>	public void authorized_user_update_program() {<br>		JSONObject request = new JSONObject();<br>		request.put(&quot;programName&quot;, &quot;cucumber learning modified&quot;);<br>		request.put(&quot;programDescription&quot;, &quot;cucumber learning&quot;);<br>		request.put(&quot;isOnline&quot;, false);</pre><pre>		response = given().auth().basic(&quot;admin&quot;, &quot;password&quot;).header(&quot;Content-type&quot;, &quot;application/json&quot;).and()<br>				.body(request).when().put(BASE_URL + &quot;/programs/&quot; + programId).then().extract().response();</pre><pre>		System.out.println(&quot;authorized_user_update_program Response Body is: &quot; + response.getBody().asString());<br>	}</pre><pre>	@Then(&quot;program is updated&quot;)<br>	public void program_is_updated() {</pre><pre>		JsonPath jsonPathEvaluator = response.jsonPath();</pre><pre>		// Then simply query the JsonPath object to get a String value of the node<br>		// specified by JsonPath: programId (Note: You should not put $. in the Java<br>		// code)<br>		String programNameUdt = jsonPathEvaluator.get(&quot;programName&quot;);<br>		System.out.println(&quot;From APi &quot; + programNameUdt);</pre><pre>		Assert.assertEquals(&quot;cucumber learning modified&quot;, programNameUdt);<br>	}</pre><pre>	@When(&quot;Authorized User delete program&quot;)<br>	public void authorized_user_delete_program() {</pre><pre>		response = given().auth().basic(&quot;admin&quot;, &quot;password&quot;).header(&quot;Content-type&quot;, &quot;application/json&quot;).when()<br>				.delete(BASE_URL + &quot;/programs/&quot; + programId).then().extract().response();</pre><pre>	}</pre><pre>	@Then(&quot;program is deleted&quot;)<br>	public void program_is_deleted() {<br>		System.out.println(&quot;Response Body is: &quot; + response.getBody().asString());</pre><pre>		int statusCode = response.getStatusCode();<br>		System.out.println(response.asString());<br>		Assert.assertEquals(statusCode, 200);<br>	}</pre><pre>}</pre><ul><li>Create TestRunner class in runners package and modify the code like below</li></ul><pre>package runners;</pre><pre>import org.junit.runner.RunWith;</pre><pre>import io.cucumber.junit.Cucumber;<br>import io.cucumber.junit.CucumberOptions;<br></pre><pre>@RunWith(Cucumber.class)<br>@CucumberOptions(<br>        features = &quot;functional-tests&quot;,<br>        glue = {&quot;stepDefinitions&quot;}<br>)<br>public class TestRunner {</pre><pre>}</pre><ul><li>We have completed all coding and now we are going to execute test and generate reports.</li><li>For executing Test Please Select pom.xml -&gt; Run as -&gt; mvn test</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*iDNd9GVze3133zBJKpTTBA.png" /></figure><ul><li>Please check the console window out output</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*5MktVsDp4GLXRXWhVXn5Xw.png" /></figure><ul><li>Please check the target folder, allure-results folder created from system after successful execution</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*iE-JSpvERaN_p9kC52qZWQ.png" /></figure><ul><li>Select Target Folder- &gt;right click-&gt; Show in Local Terminal →Terminal</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*WjvTyhAAEXieHqw_MQMw1w.png" /></figure><ul><li>In Terminal window Type allure serve command -&gt; system will display the output like below</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*qimo4hvG3aUY71Q_FbuYDg.png" /></figure><p>and system open browser and display the reports like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nLiImdBL6e_Dt3s7hFE5g.png" /></figure><p>Now we have learned how to do Api Testing using Java, cucumber and Rest-assured and generated reports using Allure.</p><p>Thanks for reading… Enjoy coding…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c04e5aab52e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference between SQL and NoSQL]]></title>
            <link>https://medium.com/@ponmalarselvi/difference-between-sql-and-nosql-4faadc2c5dff?source=rss-9655dbb04fa6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4faadc2c5dff</guid>
            <category><![CDATA[sql-vs-nosql]]></category>
            <dc:creator><![CDATA[Selvi K]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 23:05:52 GMT</pubDate>
            <atom:updated>2021-08-03T23:05:52.817Z</atom:updated>
            <content:encoded><![CDATA[<p>- NoSQL databases, or non-relational databases, can be document based, graph databases, key-value pairs, or wide-column stores. SQL databases are known as relational databases, and have a table-based data structure, with a strict, predefined schema required.</p><p>- NoSQL (“non SQL” or “not only SQL”) databases were developed in the late 2000s with a focus on scaling, fast queries, allowing for frequent application changes, and making programming simpler for developers. Relational databases accessed with SQL (Structured Query Language) were developed in the 1970s with a focus on reducing data duplication as storage was much more costly than developer time. SQL databases tend to have rigid, complex, tabular schemas and typically require expensive vertical scaling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oEmIj4HfLiZ7qf2PXNqsEA.png" /><figcaption><strong>SQL Vs NoSQL</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4faadc2c5dff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Spring Boot applications on Heroku]]></title>
            <link>https://medium.com/@ponmalarselvi/deploying-spring-boot-applications-on-heroku-e98701f4587c?source=rss-9655dbb04fa6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e98701f4587c</guid>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Selvi K]]></dc:creator>
            <pubDate>Fri, 30 Jul 2021 04:48:54 GMT</pubDate>
            <atom:updated>2021-07-30T04:48:54.234Z</atom:updated>
            <content:encoded><![CDATA[<h3>Heroku:</h3><p>Heroku is a container-based cloud Platform as a Service (PaaS). Developers use Heroku to deploy, manage, and scale modern apps. It supports several programming languages and has a very simple and convenient deployment model.</p><h3>Deploying a Spring Boot app on Heroku using Heroku CLI:</h3><p>Please create Heroku account from <a href="https://signup.heroku.com/">Heroku’s Signup Page</a>.</p><h3>1.Download and install Heroku CLI</h3><p>The Heroku Command Line Interface (CLI) makes it easy to create and manage your Heroku apps directly from the terminal. It’s an essential part of using Heroku. You can download Heroku CLI from <a href="https://devcenter.heroku.com/articles/heroku-cli#download-and-install">Heroku Dev Center</a>. You’ll also find the instructions for installing Heroku CLI on your platform on that page.</p><h3>2.Login using your email and password</h3><p>Enter the following command to login to Heroku using Heroku CLI</p><pre>heroku login</pre><p>You will be prompted to enter your Heroku account’s email and password. Enter all the details -</p><pre>Enter your Heroku credentials:<br>		Email: youremail@example.com<br>		Password: **************<br>		Logged in as youremail@example.com</pre><h3>3.Create a Heroku app</h3><p>Create a new heroku app using heroku create command like so -</p><pre>heroku create &lt;YOUR_UNIQUE_APP_NAME&gt;</pre><h3>4.Install Heroku Deploy CLI Plugin</h3><p>Enter the following command in your terminal/Command Prompt to install the heroku-cli-deploy plugin:</p><pre>heroku plugins:install heroku-cli-deploy</pre><h3>5.Package your Spring Boot application</h3><p>Next, you’ll need to package the application in the form of a jar file. You can do that using mvn package command .Execute the following commands from the root directory of the project in Command Prompt.</p><pre>mvn clean package</pre><p>This command will create a packaged jar file of the application in the target folder of the project.</p><h3>6.Deploy the jar file on Heroku</h3><p>Deploy the jar file using the following command -</p><pre>heroku deploy:jar target/projectname.jar --app &lt;APP-NAME&gt;</pre><p>Please check the log file using below command for verifying the application deployment status.</p><pre>heroku logs --tail --app &lt;APP-NAME&gt;</pre><p>If you get the error like below</p><pre>Error R10 (Boot timeout) -&gt; Web process failed to bind to $PORT within 90 seconds of launch</pre><p>We need to change the server.port in the src/main/java/resources/application.properties file like below</p><pre>server.port=${PORT:8080}</pre><p>The above property will evaluate to the PORT environment variable if it is available, otherwise it will fall back to the default port 8080.</p><p>After changing the application property, we need to build jar file using mvn clean package and deploy the jar using below command</p><pre>heroku deploy:jar target/projectname.jar --app &lt;APP-NAME&gt;</pre><p>Please verify the log file and check the application status , if it started successfully Please opn the app using <strong>heroku open</strong> command.</p><p>Thanks for reading. In the next article, you’ll learn how to deploy spring boot applications on Heroku app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e98701f4587c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>