Hosting : Deploy Bakery Application

Search for a command to run...

No comments yet. Be the first to comment.
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
We would like to build a NextJS App from scratch for our Bakery.
Are you aware of AWS Amplify? If not that’s ok. Well, if you are into software product development you know how painful is it to hire people and keep them happy and the amount of programming you need to do. If you want to avoid the programming part t...
Let add Analytics to our Bakery Front end.

initialize amplify, add services and make backend ready.

We would like to build a NextJS App from scratch for our Bakery.

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


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