Skip to main content

Command Palette

Search for a command to run...

Hosting : Deploy Bakery Application

Updated
1 min read
Hosting : Deploy Bakery Application
V

Dreamer, Problem Solver, Fighter.

Build locally first

npm run build

Fix errors if any, Once we're able to build locally, we can connect our github repo branch to amplify, so that it'll automatically build.

Goto project in Amplify on AWS Console,

Give github permissions to your repo and select it.

Go to Advanced settings, and add the below environment Variables, Click Next

AMPLIFY_FACEBOOK_CLIENT_SECRET, AMPLIFY_FACEBOOK_CLIENT_ID,
AMPLIFY_GOOGLE_CLIENT_ID,
AMPLIFY_GOOGLE_CLIENT_SECRET

Add a custom domain with a free SSL certificate

You need to add the CNAME record to your domain, we'll use a subdomain here, If your domain is registered using AWS Route 53, It'll automatically do the SSL Congiguration

i.e. https://www.bakery.vishnupatekar.com

Now we just need to create a CNAME record for subdomain and redirect it to cloudfront URL.

bakery CNAME d3g1ldgx3o2or8.cloudfront.net

Let's goto Route 53 and add the CNAME record.

Wait for a few minutes, if your build was successful, you should be able to see our web app front page

https://bakery.vishnupatekar.com/

Build with AWS Amplify

Part 1 of 4

What : Build an Web Application for a Bakery with User Journey Why : Need to Track Users and Page Visits, interact with Users How : Using Amplify, NextJS, Analytics, more servic

Up next

Add Analytics to our Bakery Web App.

Let add Analytics to our Bakery Front end.

Hosting : Deploy Bakery Application