<?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: Miracle Ayodele</title>
    <description>The latest articles on DEV Community by Miracle Ayodele (@iammiracle).</description>
    <link>https://dev.to/iammiracle</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%2F398095%2F74cbad2c-6577-4cb0-9782-4de6888ad532.jpg</url>
      <title>DEV Community: Miracle Ayodele</title>
      <link>https://dev.to/iammiracle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iammiracle"/>
    <language>en</language>
    <item>
      <title>Deploying Your First Amplify Project with Serverless</title>
      <dc:creator>Miracle Ayodele</dc:creator>
      <pubDate>Sat, 16 Jan 2021 17:49:25 +0000</pubDate>
      <link>https://dev.to/iammiracle/deploying-your-first-amplify-project-with-serverless-np8</link>
      <guid>https://dev.to/iammiracle/deploying-your-first-amplify-project-with-serverless-np8</guid>
      <description>&lt;p&gt;It is everyone joy to see what he or she has done no matter how little the project might be.&lt;/p&gt;

&lt;p&gt;In a &lt;a href="https://dev.to/iammiracle/creating-your-first-amplify-project-with-next-js-app-10j8"&gt;previous article&lt;/a&gt;, I showed you how to create your first amplify project and now we will be deploying the static project.&lt;/p&gt;

&lt;p&gt;The traditional approach will be to get an EC2 instance and deploy your app on the instance, but there is an easy, cost effective and modern approach of deploying your app.&lt;/p&gt;

&lt;p&gt;This modern way is by using the Serverless approach. In our case, we started our project with Next.js, so we are going to be using the &lt;strong&gt;&lt;a href="https://github.com/serverless-nextjs/serverless-next.js"&gt;Serverless Next.js&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the root directory of your project, you should add a YAML file, called &lt;code&gt;serverless.yml&lt;/code&gt;, then add this line of code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# serverless.yml

myFirstApplication:
  component: "@sls-next/serverless-component@1.16.0"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once this is done, you can run this command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx serverless&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Wait for some minutes for the process to complete. Once the process is complete, a URL will be created for you to see your app. Here is &lt;a href="https://d2ygsuq8gr01pn.cloudfront.net/"&gt;mine&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Note, if the generated URL shows &lt;strong&gt;This site can't be reached&lt;/strong&gt;, you will have to be patient and keep reloading till it shows your app.&lt;/p&gt;

&lt;p&gt;Congratulation, your first amplify app is now live.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>serverless</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Creating Your First Amplify Project with Next.js App </title>
      <dc:creator>Miracle Ayodele</dc:creator>
      <pubDate>Sat, 16 Jan 2021 17:48:21 +0000</pubDate>
      <link>https://dev.to/iammiracle/creating-your-first-amplify-project-with-next-js-app-10j8</link>
      <guid>https://dev.to/iammiracle/creating-your-first-amplify-project-with-next-js-app-10j8</guid>
      <description>&lt;p&gt;To create your first Amplify project with Next.js, you first need to create a Next.js App and this can easily be done by running:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx create-next-app project-name&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Wait for some minutes for the process to complete, then you can move to the project directory from your terminal and you will be ready to create your amplify project.&lt;/p&gt;

&lt;p&gt;If you need little understanding of what Amplify is, you can check it out &lt;a href="https://aws.amazon.com/amplify/"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The first step to creating your amplify project is by Initialization. Here is how you can do that:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;amplify init&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You will be asked some questions, to make it easy, kindly see image below;&lt;/p&gt;

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

&lt;p&gt;Once you are done filling the questions, the initialization process will begin&lt;/p&gt;

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

&lt;p&gt;Now you have created your project, you can search for amplify in your AWS search box, click on Amplify and you will see your project.&lt;/p&gt;

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

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

&lt;p&gt;There are lot of things you can still add to your project. You can add authentication flow, lambda functions and many more. &lt;/p&gt;

</description>
      <category>aws</category>
      <category>nextjs</category>
      <category>amplify</category>
    </item>
  </channel>
</rss>
