<?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 Francesco Arcieri on Medium]]></title>
        <description><![CDATA[Stories by Francesco Arcieri on Medium]]></description>
        <link>https://medium.com/@FArcieri?source=rss-46b75106b643------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*URy1TQHnfWRHQ5zBzg-4uw.jpeg</url>
            <title>Stories by Francesco Arcieri on Medium</title>
            <link>https://medium.com/@FArcieri?source=rss-46b75106b643------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 05:53:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@FArcieri/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[The complete guide to use AWS Amplify GEN2 with SvelteKit]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-gen2-with-sveltekit-b0b8451c75a6?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/1603/1*058tOlRq1K_LomHzGls6bA.jpeg" width="1603"></a></p><p class="medium-feed-snippet">The updated guide to how to use AWS Amplify GEN2 with SvelteKit is here! Discover how much easy is to manage AWS Amplify Gen2 with Svelte!</p><p class="medium-feed-link"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-gen2-with-sveltekit-b0b8451c75a6?source=rss-46b75106b643------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-gen2-with-sveltekit-b0b8451c75a6?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0b8451c75a6</guid>
            <category><![CDATA[aws-amplify]]></category>
            <category><![CDATA[sveltekit]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Wed, 10 Jul 2024 06:26:53 GMT</pubDate>
            <atom:updated>2024-07-10T20:07:01.469Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[UI Kits and Design Systems for SaaS Frontends]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/design-bootcamp/ui-kits-and-design-systems-for-saas-frontends-26571b1690e5?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/2065/1*2AjemjV1p2tSXGWqlZZkpA.png" width="2065"></a></p><p class="medium-feed-snippet">User interface (UI) and user experience (UX) are crucial for any software product, especially for software-as-a-service (SaaS) companies&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/design-bootcamp/ui-kits-and-design-systems-for-saas-frontends-26571b1690e5?source=rss-46b75106b643------2">Continue reading on Bootcamp »</a></p></div>]]></description>
            <link>https://medium.com/design-bootcamp/ui-kits-and-design-systems-for-saas-frontends-26571b1690e5?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/26571b1690e5</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[ui-kit-design]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Tue, 30 Jan 2024 20:34:39 GMT</pubDate>
            <atom:updated>2024-02-02T20:35:10.531Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The complete guide to use AWS Amplify with SvelteKit- Part 3: Data Models]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-part-3-data-models-a36161714fec?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/1400/0*sUhqecPolJkZm57Q.png" width="1400"></a></p><p class="medium-feed-snippet">In the Part 1 and Part 2 of the guide we saw how to manage Authentication and User State in a Sveltekit project leveraging on AWS Amplify&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-part-3-data-models-a36161714fec?source=rss-46b75106b643------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-part-3-data-models-a36161714fec?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/a36161714fec</guid>
            <category><![CDATA[data-model]]></category>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[aws-amplify]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Thu, 05 Oct 2023 21:59:25 GMT</pubDate>
            <atom:updated>2023-10-05T21:59:25.278Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The complete guide to use AWS Amplify with SvelteKit- Part 2: SvelteKit datastore]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-part-2-sveltekit-datastore-e22a9d537c5d?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/1400/0*wynICetBvaoW_GcB.png" width="1400"></a></p><p class="medium-feed-snippet">In the Part 1 of the guide we covered the essential steps to create a SvelteKit project, install and configure AWS Amplify, and integrate&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-part-2-sveltekit-datastore-e22a9d537c5d?source=rss-46b75106b643------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-part-2-sveltekit-datastore-e22a9d537c5d?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/e22a9d537c5d</guid>
            <category><![CDATA[cognito]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[aws-amplify]]></category>
            <category><![CDATA[data-stores]]></category>
            <category><![CDATA[sveltekit]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Mon, 24 Jul 2023 19:51:39 GMT</pubDate>
            <atom:updated>2023-10-06T07:59:30.441Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The complete guide to use AWS Amplify with SvelteKit - Part 1: Amplify Auth]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-13eb0546e268?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/1604/1*q16wwe3xwn3cCs37kIzTTA.png" width="1604"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-13eb0546e268?source=rss-46b75106b643------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@FArcieri/the-complete-guide-to-use-aws-amplify-with-sveltekit-13eb0546e268?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/13eb0546e268</guid>
            <category><![CDATA[svelte]]></category>
            <category><![CDATA[aws-amplify]]></category>
            <category><![CDATA[cognito]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[sveltekit]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Fri, 14 Jul 2023 21:56:41 GMT</pubDate>
            <atom:updated>2023-07-24T19:57:00.331Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Writing a Book with Visual Studio Code: A comprehensive guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@FArcieri/writing-a-book-with-visual-studio-code-a-comprehensive-guide-d571b317b390?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/2600/1*IRKbUztl7sRr7WKmE4FE4g.jpeg" width="2672"></a></p><p class="medium-feed-snippet">Writing a book is no easy task, and choosing the right editor can determine its completion. However, the editor is not the sole important&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@FArcieri/writing-a-book-with-visual-studio-code-a-comprehensive-guide-d571b317b390?source=rss-46b75106b643------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@FArcieri/writing-a-book-with-visual-studio-code-a-comprehensive-guide-d571b317b390?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/d571b317b390</guid>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[book-writing]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Sun, 25 Jun 2023 23:13:17 GMT</pubDate>
            <atom:updated>2023-06-25T23:13:17.357Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Install Praline UI on SvelteKit]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@FArcieri/install-praline-ui-on-sveltekit-9af72b988744?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/600/1*GIZ1lZpMfcmg5tKPakExIg.png" width="600"></a></p><p class="medium-feed-snippet">Preline UI is an open-source set of prebuilt UI components based on Tailwind CSS framework. Preline documentation describe how to install&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@FArcieri/install-praline-ui-on-sveltekit-9af72b988744?source=rss-46b75106b643------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@FArcieri/install-praline-ui-on-sveltekit-9af72b988744?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/9af72b988744</guid>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[preline-ui]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 22:13:06 GMT</pubDate>
            <atom:updated>2023-02-06T23:05:59.941Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[SaaS pricing models]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@FArcieri/saas-pricing-models-80705a3f0112?source=rss-46b75106b643------2"><img src="https://cdn-images-1.medium.com/max/2118/1*GH0ZKNW09cjQhZ8-5xB1pA.png" width="2118"></a></p><p class="medium-feed-snippet">Pricing is an important aspect of building a SaaS because it can have a significant impact on the success and sustainability of your&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@FArcieri/saas-pricing-models-80705a3f0112?source=rss-46b75106b643------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@FArcieri/saas-pricing-models-80705a3f0112?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/80705a3f0112</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[pricing-model]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Sun, 18 Dec 2022 18:31:37 GMT</pubDate>
            <atom:updated>2022-12-18T18:31:37.253Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to create a serverless Landing Page on AWS — Part02]]></title>
            <link>https://medium.com/@FArcieri/how-to-create-a-serverless-landing-page-on-aws-part02-87d6123f4aa2?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/87d6123f4aa2</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[emailjs]]></category>
            <category><![CDATA[landing-page-design]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 12:12:44 GMT</pubDate>
            <atom:updated>2020-04-26T11:00:57.229Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to create a serverless Landing Page on AWS — Part02</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*gUWLiIq5Z-cNlzIg" /></figure><p>In the <a href="https://medium.com/@FArcieri/how-to-create-a-serverless-landing-page-on-aws-part01-55fb58d8d36c">first part of this tutorial</a>, we saw how to host a simple Hello World page on AWS. In this second part, we will create a complete Landing page.</p><h3>Draw a sketch of the Landing Page</h3><p>To create a great Landing Page the first step is to find a white paper. Then you should sketch your ideal Landing page remembering to insert at least these fundamentals elements:</p><ul><li><strong>Logo</strong> of your company</li><li><strong>Headline</strong> to deliver your message and capture the attention of the visitor</li><li><strong>Email</strong> input field and <strong>Click to Action (CTA) button </strong>to collect the email of your prospect</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/0*H639Yf-M9ZXe_UIo" /></figure><p>Then you can add many other elements like news, feature descriptions, engaging media, Infographics, etc but the focus should be always on the usability and accessibility of the page.</p><blockquote><em>Note: Don’t use navigation bar in your Landing Page. Many companies increased their conversion rate after removing the navigation bar.</em></blockquote><p>Then you can refine the sketch using a Design Tool like <a href="https://www.sketch.com/">Sketch</a> (only for Mac and with 30 days trial), <a href="https://www.figma.com/">Figma</a> (web-based and with a free starter plan) or <a href="https://www.adobe.com/it/products/xd.html">Adobe XD</a> (Mac/Win and with a free starter plan) and some wireframe templates (for <a href="https://www.sketchappsources.com/free-source/2749-simple-wireframe-kit-sketch-freebie-resource.html">Sketch</a>, <a href="https://www.figma.com/templates/wireframe-kits/">Figma</a> or <a href="http://download.adobe.com/pub/adobe/xd/ui-kits/xd-resources-wireframekits-ui.zip?promoid=9DJJ4MR1&amp;mv=other">Adobe XD</a>).</p><p>Here an example of a Landing Page wireframe created with Sketch:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dLyTsWsozGqbmjd-" /></figure><h3>Create the Landing Page using a Design System</h3><p>To be hosted on an S3 bucket the Landing Page needs to be composed only by HTML, CSS and JavaScript. It should be also responsive to support multiple devices.</p><p>To reduce development time it is a good idea to use a template (there are many both free and commercial). I strongly suggest considering the ones by <a href="https://www.creative-tim.com/">Creative Tim.</a></p><p>For our Landing Page we will use the <a href="https://www.creative-tim.com/product/argon-design-system?ref=adsa-github-readme">Argon Design System</a> (free and with MIT Licence).</p><p>Argon Design System is more than just a template. It is built with over 100 individual components, giving you the freedom of choosing and combining. You will save a lot of time going from prototyping to full-functional code because all elements are implemented.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/0*0_BjYLu717gnluz2" /></figure><p>Starting from the landing.html example page of this design system, you can easily create your own landing page combining components documented <a href="https://demos.creative-tim.com/argon-design-system/docs/getting-started/overview.html">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*nipen4lNJQw5QxFn" /></figure><p>The Landing Page (here the <a href="https://github.com/FrancescoArcieri/LandingPage/tree/master/BasicLandingPage">code</a>) is now graphically complete but it is yet not possible sending emails.</p><p>Enter in AWS Console and insert “ <em>Simple Email Service</em> “ (SES for friends) into the Find Services search field. Then in SES dashboard, click on “Domains” in the right column and then on “Verify a New Domain”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/0*VBthg478AFw_ASel" /></figure><p>Then insert your domain name (without www, it is not needed), check the “ <em>Generate DKIM Settings</em>” and click on “ <em>Verify This Domain</em> “ button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/0*DTCQ1Jhah-q1NJR3" /></figure><p>Then you will see the parameters to manually configure the following record sets:</p><ul><li>1 TXT record set to verify your domain</li><li>3 CNAME record sets to enable DKIM signing for your domain</li><li>1 MX record set to route your domain’s incoming mail to Amazon SES</li></ul><p>Luckily because we used Route 53 before you can click on “<strong><em>Use Route 53</em></strong>” button to create automatically the new records.</p><p>Also this time we need to wait for verification, so wait until in the status of the Domain identity becomes “ <em>verified</em> “.</p><p>When ready, go to “<strong><em>SMTP Settings</em></strong>” link in the <em>Email Sending</em> section and then click on the “<strong><em>Create my SMTP Credentials</em></strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*hrRYYQh7HiEnW1pc" /></figure><p>In the following page you can customize the name of the IAM user that will be created and associated with the SMTP credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*pjm-7qHjz4Z_wu2C" /></figure><p>Click on the “Create” button and, in the next page, you will see the SMTP Credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*YOsNmEaHT2KLaKN4" /></figure><p>Now you can use these credentials (you can also download them as CSV file) to setup your SMTP client and emails. Use also the following parameters to configure your client:</p><ul><li><strong>Server Name: email-smtp.[region].amazonaws.com </strong>(enter the SMTP endpoint for the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html">AWS Region in which you use Amazon SES</a>, in my case is: <em>email-smtp.eu-west-1.amazonaws.com)</em></li><li><strong>Port: 587</strong></li></ul><h3>Sending email with Javascript</h3><p>Generally, you need server-side code to send emails, but using some libraries like <a href="https://www.smtpjs.com/">SmtpJS</a> or <a href="https://www.emailjs.com/">EmailJS</a> you can add the possibility to send emails also with client-side Javascript. This approach allows your app to send an email without refreshing the page the user is interacting with and allows you to host the page on S3.</p><p>I suggest you using EmailJs because is a professional service and has a free plan with 200 emails/month you can start with.</p><h4>Create an EmailJs account</h4><p>Create an account on their website and then on “Email Services” section click on the button “Add new service”. Select “Amazon SES” and you will see the following form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/0*hmDuIRhyW9AtSHDp" /></figure><p>To fill the form you need to create an SES user with particular permissions.</p><h4>Create the custom Policy</h4><p>So enter in your AWS console e go to IAM dashboard. In the left menu click on “Policies” and then press on the “Create Policy” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*dB3cpITWq3CNjxG-" /></figure><p>Click on “JSON” tab and then add the following code:</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;ses:SendEmail&quot;,<br>                &quot;ses:SendRawEmail&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;*&quot;<br>        }<br>    ]<br>}</pre><p>Click “Review Policy”. Give a name to the policy (like myPolicy-SES-user-for-EmailJS), insert a description and then click to create policy.</p><p>Now you can create the user and associate the policy just created.</p><h4>Create the user and associate the policy</h4><p>In the left menu click on “Users” and then on “Add User”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/0*m5f4CmIi2dyu1_bL" /></figure><p>Then insert the user name and select “Programmatic access”. On the next step select the “Attach existing policies directly”. You can easily find the created policy filtering for “mypolicy” (adding “mypolicy” or any other prefix when you create a policy is a good way to easily find your custom policy).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/0*-QonVaGLAZy8UrZE" /></figure><p>Select the policy, click next until step 4 and then click on “Create user”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/0*ixtsy0k1K3Y3n6H0" /></figure><h4>Configure the Email Service on EmailJS account</h4><p>Copy the <em>Access Key ID</em> and <em>Secret access key</em> and insert in the previous EmailJS form. You should receive a confirmation message and also the email of test.</p><p>Now you can configure the template of the email that will be sent. In the EmailJS console, on the left menu, click on “Email Templates” and edit the default template as in the following picture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*qlp6C8nnSXb1U4h4" /></figure><h4>Add EmailJS script on your code</h4><p>Start substituting the form code from:</p><pre>&lt;form&gt;<br>  &lt;div class=&quot;row&quot;&gt;<br>    &lt;div class=&quot;col-md&quot;&gt;<br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;input type=&quot;text&quot; class=&quot;form-control form-control-alternative&quot; id=&quot;name&quot; placeholder=&quot;your name&quot;&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;col-md&quot;&gt;<br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;input type=&quot;email&quot; class=&quot;form-control form-control-alternative&quot; id=&quot;email&quot; placeholder=&quot;your@email.com&quot;&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;col-sm&quot;&gt;<br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;button type=&quot;button&quot; class=&quot;btn btn-warning btn-icon&quot;&gt;Notify Me&lt;/button&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/form&gt;</pre><p>to:</p><pre>&lt;form&gt;<br>  &lt;div class=&quot;row&quot;&gt;<br>    &lt;div class=&quot;col-md&quot;&gt;<br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;input type=&quot;text&quot; class=&quot;form-control form-control-alternative&quot; id=&quot;name1&quot; placeholder=&quot;your name&quot;&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;col-md&quot;&gt;<br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;input type=&quot;email&quot; class=&quot;form-control form-control-alternative&quot; id=&quot;email1&quot; placeholder=&quot;your@email.com&quot;&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;col-sm&quot;&gt;<br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;input type=&quot;button&quot; class=&quot;btn btn-warning btn-icon&quot; value=&quot;Notify me&quot; onclick=&quot;sendEmail(document.getElementById(&#39;name1&#39;).value, document.getElementById(&#39;email1&#39;).value)&quot;&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/form&gt;</pre><p>Then create a new javascript file for the sendEmail() function (in our case will be sendmail-aws-emailjs.js under /assets/js/plugins):</p><pre>function sendEmail(name, email) {<br><br>     var templateParams = {<br>       name: name,<br>       email: email<br>     }; <br><br>     if (!isValidEmail(email)){<br>          $(&#39;#notValidEmailModal&#39;).modal();<br>       }<br><br>     else {<br>     //console.log(&quot;sending email&quot;)<br>     emailjs.send(&#39;amazon_ses&#39;, &#39;<strong>template_fgXf7dyE</strong>&#39;, templateParams)<br>         .then(function(response) {<br>            //console.log(&#39;SUCCESS!&#39;, response.status, response.text);<br>            $(&#39;#sentEmailModal&#39;).modal()<br>         }, function(error) {<br>            console.log(&#39;FAILED...&#39;, error);<br>         });<br>   }<br> }</pre><p>Note: Remember to update the template id (in bold) with your specific template id (you can find it on EmailJS console).</p><p>Finally, add the following rows in the index.html file before the end of the body tag.</p><pre>&lt;script src=&quot;assets/js/plugins/sendmail-aws-emailjs.js&quot;&gt;&lt;/script&gt;<br>  &lt;script type=&quot;text/javascript&quot; src=&quot;https://cdn.jsdelivr.net/npm/emailjs-com@2.3.2/dist/email.min.js&quot;&gt;&lt;/script&gt;<br>  &lt;script type=&quot;text/javascript&quot;&gt;<br>   (function(){<br>      emailjs.init(&quot;<strong>user_ppPCVRrCf3svgNBBF4FH8</strong>&quot;);<br>   })();<br>  &lt;/script&gt;</pre><p>Note: Remember to update the user id (in bold) with your specific user id (you can find it on EmailJS console).</p><p>Now you have a fully Landing Page able to notify you if some prospect is interested in the SaaS you are developing. You can download the full code <a href="https://github.com/FrancescoArcieri/LandingPage/tree/master/FullLandingPageEmailJs">here</a>.</p><p><em>Originally published at </em><a href="http://francescoarcieri.it/saas/create-a-landing-page-on-aws-part02/"><em>http://francescoarcieri.it</em></a><em> on April 25, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87d6123f4aa2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a serverless Landing Page on AWS — Part01]]></title>
            <link>https://medium.com/@FArcieri/how-to-create-a-serverless-landing-page-on-aws-part01-55fb58d8d36c?source=rss-46b75106b643------2</link>
            <guid isPermaLink="false">https://medium.com/p/55fb58d8d36c</guid>
            <category><![CDATA[cloudfront]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[route-53]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Francesco Arcieri]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 22:32:13 GMT</pubDate>
            <atom:updated>2020-04-26T11:02:51.364Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to create a serverless Landing Page on AWS — Part01</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*W61IXlWW3DTp06mu" /></figure><p>A common way of approaching a digital business, after have chosen the company or solution name and registered the domain name, is to start building the SaaS solution and only when ready start with marketing activities. This approach has the disadvantage to spend money and time developing a solution with requirements not tested on the market. A better approach is to follow the Minimum Viable Marketing Framework (MVMF) starting advertising your future solution ad collecting prospects with a landing page.</p><p>In this tutorial, we start hosting a Hello World page on AWS and then we will create and publish a complete Landing Page.</p><h3>Part 1: Host a Hello World Page on AWS</h3><h3>Architecture</h3><p>To host a landing page on AWS we will use three AWS services implementing the following architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/0*cs0APpJdQrDUZlc8" /></figure><p>Amazon Route 53 is the DNS service of the AWS platform and will be used to manage the DNS routing. Amazon CloudFront is a CDN (Content Delivery Network) service and Amazon S3 is an object storage service that can be used also to host a static website.</p><h3>Create the S3 Bucket</h3><p>The first step is to create an S3 Bucket. Enter in AWS Console and insert “S3” into the Find Services search field. In the Amazon S3 dashboard click on the “Create bucket” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/0*ou4ap-k9FMrDK_pc" /></figure><p>Insert the name of the bucket (any name is fine but it is recommended to use your domain as bucket name), select the region where you want to create the bucket and click on “Create bucket”. Once created, click on the bucket name to access the bucket properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/0*_rK2pLBXvubNcFp_" /></figure><p>Click on “Static website hosting” and then select “ <em>Use this bucket to host a website</em> “. Also, add the main file of your web application (generally index.html) and click on “Save” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*8bnGOPBgT-H60sDq" /></figure><p>In this window you can notice the bucket endpoint with the following format:</p><pre><a href="http://[your-bucket-name].s3-website-[Region].amazonaws.com">http://[your-bucket-name].s3-website-[Region].amazonaws.com</a></pre><p>Now you can create a simple index.html file like the following one:</p><h3>Upload Hello World file</h3><p>To upload the file go to the S3 Dashboard, click on the bucket name and then click on the “Upload” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/0*0Y_hHwjh_O89OIfW" /></figure><p>then select the index.html file to upload and click “Upload”.</p><p>If you try to access to the S3 endpoint you will receive a 403 Forbidden message error because access is denied.</p><h3>Configure Permissions</h3><p>To enable public access to the bucket you need to go to the “Permissions” tab and click on “ <em>Block public Access</em> “. Then deselect “Block all public access” checkbox and click “Save”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N1zCmPSbFOpVsrsU" /></figure><p>Then click on the “Bucket Policy” button, insert the following JSON policy (modifying your bucket name) and then click to “Save”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/0*xIxzAl7ZYBZGZmMv" /></figure><p>You can now notice that the bucket has public access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i7rYmRLEmj51I0Es" /></figure><p>If you insert the bucket endpoint url in a web browser you will see Hello World!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/0*jyTmdP-vneyDrqul" /></figure><h3>Create CloudFront distribution</h3><p>However, the connection to the website is not secure and to protect it you can use the Amazon CloudFront service. In the AWS Console insert “ <em>CloudFront</em>” into the Find Services search field and then click on “ <em>Create Distribution</em> “.</p><p>There are two types of CDN: Web and RTMP. Click on the “Get Started” button of the web distribution, then you will see a page with a long list of parameters to fill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*tvjPIzQ5nI7aoVzQ" /></figure><p>The parameters to change are the followings.</p><p>In Origin Settings:</p><p>In Cache Behavior Settings:</p><ul><li><em>“Viewer Protocol Policy”: </em>select <strong>Redirect HTTP to HTTPS.</strong></li><li><em>“Object Caching</em>”: select <strong>Customize </strong>and change TTL values (you can set Default TTL to 600 and change it later).</li></ul><p>In Distribution Settings:</p><ul><li><em>“Price Class”: </em>select the best option according to your case (For me is “Use Only U.S., Canada and Europe”)</li><li><em>“SSL Certificate</em>”: select <strong>Default CloudFront Certificate</strong></li><li><em>“Default Root Object</em>”: add <strong>index.html</strong></li></ul><p>At the end click on “Create Distribution” and take a coffee (or a cup of tea) because creation time will be about 15–20 minutes.</p><p>When the state of the distribution will be <em>Deployed, </em>insert into your browser its url (in my case d3u7d8ugu2qrai.cloudfront.net) and this time the connection will be secure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*7aVXL8L0pllA70b1" /></figure><h3>Configure DNS in Route 53</h3><p>In the AWS Console insert “ <em>Route 53</em>” into the Find Services search field and then click “Get started now” in <strong>DNS management</strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/0*N1BwhG3V4wy-AQFY" /></figure><p>Click “ <em>Create Hosted Zone</em>”, insert the name of your domain (you can <a href="http://francescoarcieri.it/how-to/registering-your-domain-name/">register a domain in AWS</a> or use your own domain registrar) and click on “Create”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/0*278fhP8oM6lEzzcJ" /></figure><p>At the end of hosted zone creation, you will see the following record sets: NS and SOA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*JoENpxw9xycyHOV_" /></figure><p>To connect a domain of another domain registrar you need to change the record sets following the registrar documentation and pointing to the AWS NS record.</p><h3>Request an SSL Certificate</h3><p>To obtain a certificate (free of charge) for your domain you need to go to the <em>AWS Certification Manager</em> service and click “ <em>Request a certificate</em>” and then choose the default option “ <em>Request a public certificate</em> “.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*Krv55Fx9pEnZ4zwR" /></figure><p>Then add your domain name and click on “Next”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/0*nDOCpmsN5s2t-zaa" /></figure><p>Select “DNS Validation” option and click “Next”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/0*zY9wmAI5z6k9BoWz" /></figure><p>Then select the default options until Step 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/0*KjM3GWVUvyktqYVN" /></figure><p>Click continue and you will see your domain in status “<strong><em>Pending Validation</em></strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/0*dYAWxa2ILd_SloAU" /></figure><p>Click on your domain name to see the CNAME record to add to DNS configuration to obtain the certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/0*T5Sm1U1K_ni6BqtK" /></figure><p>You can just simply click on the “Create record in Route 53” button.</p><p>Otherwise, if you want to do it manually, you can go to Route 53 Dashboard, click on “Hosted zones, select your domain and click on “Create Record Set”. Select “ <strong>CNAME</strong>” in the <em>Type</em> dropdown field and fill the <em>Name</em> and <em>Value </em>fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/0*sWmmDzdQsqM2uhYN" /></figure><p>Then wait until your certificate will be in the “Issued” status (it may take up to 30 minutes).</p><h3>Import the SSL Certificate in CloudFront</h3><p>The final step is to import the SSL Certificate. Go to the CloudFront Dashboard, select the distribution created before and click on “Edit”.</p><p>You need:</p><ul><li>Add your domain in the “<strong>Alternate Domain Names</strong>” field</li><li>Select the “<strong>Custom SSL Certificate</strong>” option</li><li>Select the certificate created before</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/0*MrPeflsAKLBWxQ46" /></figure><p>Then click “Yes, Edit” and wait until the status of the distribution is “<em>Deployed</em>“.</p><h3>Routing the traffic to CloudFront</h3><p>There is the last step to perform, that is to create an A record set to route the queries to your domain towards CloudFront.</p><p>Go to Route 53 dashboard, select Hosted Zones and then click on your domain.</p><p>Click on “<strong><em>Create Record Set</em></strong>”, then:</p><ul><li>Select “<strong>A — IPv4address</strong>” in the <em>Type</em> dropdown field.</li><li>Select “<strong>Yes</strong>” in the <em>Alias</em> field.</li><li>Select the created CloudFront distribution in the “<em>Alias Target</em>” field.</li></ul><p>Click on the “ <em>Create</em> “ button to create the record set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/0*NCiOgUAW0qhIVeIS" /></figure><p>Finally, you will see the Hello World Page on your domain and with an SSL Certificate active.</p><p>Read the <a href="https://medium.com/@FArcieri/how-to-create-a-serverless-landing-page-on-aws-part02-87d6123f4aa2">second part</a> of this article.</p><p><em>Originally published at </em><a href="http://francescoarcieri.it/saas/create-a-landing-page-on-aws-part01/"><em>http://francescoarcieri.it</em></a><em> on March 22, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55fb58d8d36c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>