<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mani-playground</title>
    <description>The latest articles on DEV Community by mani-playground (@maniplayground).</description>
    <link>https://dev.to/maniplayground</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F551366%2Fd3f5f74c-ef62-4127-b84b-e7a452577075.png</url>
      <title>DEV Community: mani-playground</title>
      <link>https://dev.to/maniplayground</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maniplayground"/>
    <language>en</language>
    <item>
      <title>Useful maven commands</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Tue, 29 Jun 2021 02:47:57 +0000</pubDate>
      <link>https://dev.to/maniplayground/useful-maven-commands-lma</link>
      <guid>https://dev.to/maniplayground/useful-maven-commands-lma</guid>
      <description>&lt;p&gt;Dependency tree&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mvn org.apache.maven.plugins:maven-dependency-plugin:tree -Dverbose=true -Dincludes=org.springframework.batch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Skip tests&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mvn clean install  -Dmaven.test.skip=true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>maven</category>
      <category>build</category>
    </item>
    <item>
      <title>Spring boot properties file tips</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Tue, 16 Mar 2021 18:44:50 +0000</pubDate>
      <link>https://dev.to/maniplayground/spring-boot-properties-file-tips-4c93</link>
      <guid>https://dev.to/maniplayground/spring-boot-properties-file-tips-4c93</guid>
      <description>&lt;p&gt;Setting a variable with the value of a property from .properties file (note how spring does automatic type conversion to int)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    @Value("${some.property}")
    private int SOME_PROPERTY;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use a default property value if the specified property is not present&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    @Value("#{'${prop.val.specific:${prop.val.default:}}'}")
    private String PROP_VALUE;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Setting comma separated values to a List&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    @Value("#{'${comma.separated.property}'.split(',')}")
    private List&amp;lt;String&amp;gt; COMMA_SEPARATED_PROPERTY;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>spring</category>
      <category>springboot</category>
    </item>
    <item>
      <title>MyBatis tips</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Wed, 13 Jan 2021 18:06:16 +0000</pubDate>
      <link>https://dev.to/maniplayground/conditional-update-query-with-mybatis-32o</link>
      <guid>https://dev.to/maniplayground/conditional-update-query-with-mybatis-32o</guid>
      <description>&lt;h1&gt;
  
  
  Conditional update query with MyBatis
&lt;/h1&gt;

&lt;p&gt;Sample code for conditional update (testing for a value using if)  when using annotation based MyBatis mapper interface in Java.&lt;/p&gt;

&lt;p&gt;COLUMN_1 and COLUMN_2 are updated with values from field1 and field2 respectively only if they are not null. DataUpdateParams class will have all the fields in parameters like field1, field2, name, id and userId with corresponding getters/setters.&lt;/p&gt;

&lt;p&gt;Note that the query needs to be enclosed within  tag.

&lt;/p&gt;&lt;p&gt;The example uses syntax for SQL server but works similar for other databases too.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static String UPDATE_MY_DATA = 
            "&amp;lt;script&amp;gt;" +
                "  UPDATE B " + 
                " &amp;lt;set&amp;gt; " + 
                    "&amp;lt;if test='field1 != null'&amp;gt;A.COLUMN_1 = #{field1, jdbcType=VARCHAR},&amp;lt;/if&amp;gt;" +
                    "&amp;lt;if test='field2 != null'&amp;gt;A.COLUMN_2 = #{field2, jdbcType=VARCHAR},&amp;lt;/if&amp;gt;" +
                    "A.UPDATE_ID = #{userId, jdbcType=VARCHAR}, " + 
                    "A.UPDATE_TIMESTAMP = GETDATE() " + 
                " &amp;lt;/set&amp;gt;" +
                "  FROM TABLE_1 A " + 
                "  INNER JOIN TABLE_2 B ON B.B_ID = A.B_ID " + 
                "  WHERE B.NAME = #{name, jdbcType=VARCHAR} " +                 
                "  AND A.A_ID = #{id, jdbcType=BIGINT}" +
            "&amp;lt;/script&amp;gt;";
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    @Update(UPDATE_MY_DATA)
    public void updateMyData(DataUpdateParams params);
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  For-each loop
&lt;/h1&gt;

&lt;p&gt;Below example (with xml file) showing how to use a foreach loop in mybatis. This can have several use cases - For eg., when dynamically forming IN clause for select, update or delete query.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;delete id="deleteUsers"&amp;gt;
        DELETE
        FROM USER
        WHERE USER_ID IN (
                &amp;lt;foreach item="userName" collection="list" separator="," open="(" close=")"&amp;gt;
                    '${userName}'
                &amp;lt;/foreach&amp;gt;
            )
        )
   &amp;lt;/delete&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;It can be invoked from java code something similar to below -&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   List&amp;lt;String&amp;gt; userNames = Arrays.asList("first_user", "second_user");
   int deletedCount = session.delete("mapper.deleteUsers", userNames);
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Inserting to a table with foreign key value generated from a different insert
&lt;/h1&gt;

&lt;p&gt;Assuming we are inserting to EMPLOYEE_ADDRESS table with the EMPLOYEE_ID generated when inserting to EMPLOYEE table&lt;br&gt;
Mapper interface&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Repository
@Mapper
public interface EmployeeMapper {

    final String INSERT_EMPLOYEE = "INSERT INTO EMPLOYEE(FNAME, LNAME, DEPT, INSERT_ID, INSERT_TIMESTAMP)"
            + "VALUES(#{fName}, #{lName}, #{dept}, #{userId}, GETDATE())";

    final String INSERT_EMPLOYEE_ADDRESS = "INSERT INTO EMPLOYEE_ADDRESS(EMPLOYEE_ID, ADDRESS_1, ADDRESS_2, CITY, STATE, ZIP, INSERT_ID, INSERT_TIMESTAMP)"
            + "VALUES(#{employeeId}, #{address1}, #{address2}, #{city}, #{state}, #{zip}, #{userId}, GETDATE())";

    @Insert(INSERT_EMPLOYEE)
    //This stores the generated key EMPLOYEE_ID into the property employeeId
    @Options(useGeneratedKeys=true, keyProperty="employeeId", keyColumn="EMPLOYEE_ID")
    void insertEmployee(Employee employee);

    @Insert(INSERT_EMPLOYEE_ADDRESS)
    void insertEmployeeAddress(EmployeeAddress employeeAddress);

}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Calling program&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;employeeMapper.insertEmployee(employee);
employeeAddress.setEmployeeId(employee.getEmployeeId()); //Generated Employee id that was set by MyBatis in employee object is set to employeeAddress
employeeMapper.insertEmployeeAddress(employeeAddress);
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;


</description>
      <category>database</category>
      <category>mybatis</category>
      <category>sql</category>
      <category>java</category>
    </item>
    <item>
      <title>SQL Server System versioned temporal table</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Sat, 02 Jan 2021 14:42:22 +0000</pubDate>
      <link>https://dev.to/maniplayground/sql-server-system-versioned-temporal-table-4i99</link>
      <guid>https://dev.to/maniplayground/sql-server-system-versioned-temporal-table-4i99</guid>
      <description>&lt;p&gt;There are times when we need to maintain an audit trail of data changes made to a database table. SQL Server 2016 added support for &lt;a href="https://en.wikipedia.org/wiki/Temporal_database"&gt;Temporal&lt;/a&gt; tables to achieve this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Adding versioning to an existing table&lt;/strong&gt;&lt;br&gt;
A Non-Temporal Table can be changed into a System-Versioned Temporal Table by adding PERIOD definitions and enabling System versioning as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALTER TABLE myschema.mytable
    ADD   
        SysStartTime DATETIME2(0) GENERATED ALWAYS AS ROW START HIDDEN
            CONSTRAINT DF_SysStart DEFAULT SYSUTCDATETIME()
      , SysEndTime DATETIME2(0) GENERATED ALWAYS AS ROW END HIDDEN
            CONSTRAINT DF_SysEnd DEFAULT CONVERT(DATETIME2 (0), '9999-12-31 23:59:59'),
        PERIOD FOR SYSTEM_TIME (SysStartTime, SysEndTime);        

ALTER TABLE myschema.mytable  
SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE = history.trial_mytable));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Querying historical data from a temporal table&lt;/strong&gt;&lt;br&gt;
The power of this feature lies in its simplicity. Once System versioning is enabled, we can forget about the history table. SQL Server manages the audit/history of changes for us. We could directly query the main table and get a snapshot of how the data looked at any point in the past using the syntax below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;select *
from myschema.mytable
FOR SYSTEM_TIME AS OF '2020-12-31 17:47:46' ;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another good thing is that only the changes get stored in the history table. That is, if we created a table, enabled versioning and just inserted a bunch of rows to it, then the history table will be empty. Only if the data in the main table is updated or deleted, the changes get into the history table. In other words, SQL Server does not create duplicate records between the main table and history table.&lt;/p&gt;

&lt;p&gt;Refer to &lt;a href="https://docs.microsoft.com/en-us/sql/relational-databases/tables/creating-a-system-versioned-temporal-table?view=sql-server-2017#important-remarks"&gt;SQL Server documentation&lt;/a&gt; for some of the limitations / things to keep in mind when using System-versioned temporal tables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source :&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://docs.microsoft.com/en-us/sql/relational-databases/tables/creating-a-system-versioned-temporal-table?view=sql-server-2017"&gt;https://docs.microsoft.com/en-us/sql/relational-databases/tables/creating-a-system-versioned-temporal-table?view=sql-server-2017&lt;/a&gt;&lt;/p&gt;

</description>
      <category>database</category>
      <category>sqlserver</category>
      <category>history</category>
      <category>temporal</category>
    </item>
    <item>
      <title>Useful SQL Server sys table queries and stored procs</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Sat, 02 Jan 2021 14:10:59 +0000</pubDate>
      <link>https://dev.to/maniplayground/useful-sql-server-sys-table-queries-and-stored-procs-4epn</link>
      <guid>https://dev.to/maniplayground/useful-sql-server-sys-table-queries-and-stored-procs-4epn</guid>
      <description>&lt;p&gt;&lt;strong&gt;List of tables in a schema with schema name&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;select s.name + '.' + o.name
from sys.objects o
inner join sys.schemas s on s.schema_id = o.schema_id
where s.name = '&amp;lt;schema name&amp;gt;'
and [type] = 'U';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;List of tables which has the column&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT      
    TABLE_SCHEMA AS 'Schema',
    COLUMN_NAME AS 'ColumnName',
           TABLE_NAME AS  'TableName'
FROM        INFORMATION_SCHEMA.COLUMNS
WHERE       COLUMN_NAME LIKE '%ColumnName%'
ORDER BY    TableName
            ,ColumnName;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recently modified objects&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;select [type] OBJ_TYPE, s.name + '.' + o.name, *
from sys.objects o
inner join sys.schemas s on s.schema_id = o.schema_id
where 1=1
and [type] IN ('P','IF', 'FN', 'TF', 'V')
and o.create_date &amp;gt; '2023-06-05 11:07:31.187' --replace with required date
and s.name in ('dbo') -- modify / add schemas to include
ORDER BY [type], s.name, o.create_date
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Create a new table with columns copied from an existing table (without data)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;select top 0 * into NewTable 
from ExistingTable;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Delete all tables in all schema in a database&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;EXEC sp_MSForEachTable 'DISABLE TRIGGER ALL ON ?'
GO
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
GO
EXEC sp_MSForEachTable 'DELETE FROM ?'
GO
EXEC sp_MSForEachTable 'ALTER TABLE ? CHECK CONSTRAINT ALL'
GO
EXEC sp_MSForEachTable 'ENABLE TRIGGER ALL ON ?'
GO
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Find objects (Stored proc, function etc.,) that contain the given text&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT DISTINCT
    o.name AS object_name,
    o.type_desc AS object_type,
    s.name
FROM sys.objects AS o
JOIN sys.sql_modules AS m ON o.object_id = m.object_id
JOIN sys.schemas AS s ON s.schema_id = o.schema_id
WHERE m.definition LIKE '%ReplaceWithTextToSearch%'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;LIKE operation on an XML column&lt;/strong&gt;&lt;br&gt;
We can't do a like operation on an XML column in SQL Server. As a work around, just cast the column to varchar.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;select *
from schema.table
where CAST(xml_col_nm as nvarchar(max)) like '%search_term%'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Stats&lt;/strong&gt;&lt;br&gt;
Check when stats was last updated for tables in a given schema&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT OBJECT_NAME(st.object_id) AS [ObjectName]
      ,st.[name] AS [StatisticName]
      ,STATS_DATE(st.[object_id], [stats_id]) AS [StatisticUpdateDate]
FROM sys.stats st
inner join sys.objects o on o.object_id = st.object_id
inner join sys.schemas s on s.schema_id = o.schema_id
where s.name = '&amp;lt;schema name&amp;gt;';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>database</category>
      <category>sql</category>
      <category>sqlserver</category>
    </item>
    <item>
      <title>Start a flask app</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Fri, 01 Jan 2021 19:56:12 +0000</pubDate>
      <link>https://dev.to/maniplayground/start-a-flask-app-25cj</link>
      <guid>https://dev.to/maniplayground/start-a-flask-app-25cj</guid>
      <description>&lt;p&gt;source venv/bin/activate&lt;br&gt;
export FLASK_APP=flaskr&lt;br&gt;
flask run&lt;/p&gt;

&lt;p&gt;//If we need to make the server publicly available&lt;br&gt;
flask run --host=0.0.0.0&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reference :&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://flask.palletsprojects.com/en/1.1.x/quickstart/"&gt;https://flask.palletsprojects.com/en/1.1.x/quickstart/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>flask</category>
      <category>jinja</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Update node version</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Fri, 01 Jan 2021 19:38:58 +0000</pubDate>
      <link>https://dev.to/maniplayground/update-node-version-4d71</link>
      <guid>https://dev.to/maniplayground/update-node-version-4d71</guid>
      <description>&lt;p&gt;nvm --version&lt;br&gt;
nvm ls&lt;br&gt;
nvm ls-remote&lt;/p&gt;

&lt;p&gt;nvm install &amp;lt;version&amp;gt;&lt;br&gt;
node -v&lt;/p&gt;

</description>
      <category>node</category>
      <category>nvm</category>
      <category>version</category>
      <category>update</category>
    </item>
    <item>
      <title>Building a simple Alexa voice app</title>
      <dc:creator>mani-playground</dc:creator>
      <pubDate>Fri, 01 Jan 2021 18:31:46 +0000</pubDate>
      <link>https://dev.to/maniplayground/alexa-voice-app-5gph</link>
      <guid>https://dev.to/maniplayground/alexa-voice-app-5gph</guid>
      <description>&lt;p&gt;Created a voice app using &lt;a href="https://helloviolet.ai"&gt;Violet&lt;/a&gt;, which is a javascript based opensource framework by developers at Salesforce.&lt;/p&gt;

&lt;p&gt;Code sample is &lt;a href="https://github.com/mani-playground/alexa-app-trial/tree/main/voice_controlled_scorer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To test the alexa skill deployed locally, it can be exposed externally using &lt;a href="https://ngrok.com/"&gt;ngrok&lt;/a&gt; so that Alexa server can access it.&lt;/p&gt;

&lt;p&gt;After installing ngrok, below is the command to expose service running in local machine on port 8080.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;ngrok http 8080&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lDTawC4V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jyoc24p2l18tx9doaqf1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lDTawC4V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jyoc24p2l18tx9doaqf1.png" alt="Screenshot_ngrok"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this case, the service can be accessed in the web using the below url (note : The link expires in 8 hours in the free version of ngrok)&lt;br&gt;
&lt;a href="https://561adde7bf38.ngrok.io/"&gt;https://561adde7bf38.ngrok.io/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The endpoint &lt;a href="https://561adde7bf38.ngrok.io/alexa"&gt;https://561adde7bf38.ngrok.io/alexa&lt;/a&gt; needs to be specified in &lt;a href="https://developer.amazon.com/alexa/console/ask"&gt;Alexa developer console&lt;/a&gt; by selecting HTTPS under Endpoint section.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yKwDnGJV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gb68ym0lrydemqzuna03.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yKwDnGJV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gb68ym0lrydemqzuna03.png" alt="Screenshot_amazon_developer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Make sure to select below option&lt;br&gt;
&lt;em&gt;My development endpoint is a sub-domain of a domain that has a wildcard certificate from a certificate authority&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Sample interaction model json to be specified in the Alexa developer console under "Interaction Model -&amp;gt; JSON Editor" is included &lt;a href="https://github.com/mani-playground/alexa-app-trial/blob/main/voice_controlled_scorer/Interaction_Model.json"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;References :&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://hackernoon.com/how-to-build-a-voice-app-in-30-minutes-uz6132kj"&gt;https://hackernoon.com/how-to-build-a-voice-app-in-30-minutes-uz6132kj&lt;/a&gt;&lt;br&gt;
&lt;a href="https://i3labs.org/2019/03/getting-inputs-for-your-voice-app"&gt;https://i3labs.org/2019/03/getting-inputs-for-your-voice-app&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.macadamian.com/learn/developing-alexa-skills-locally-with-ngrok-and-node-js/"&gt;https://www.macadamian.com/learn/developing-alexa-skills-locally-with-ngrok-and-node-js/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>alexa</category>
      <category>voice</category>
      <category>javascript</category>
      <category>amazon</category>
    </item>
  </channel>
</rss>
