After this section, you will be able to see the published web app on both your PC and mobile device by visiting the published URL.

More information on the services introduced in this section:
Make sure your region is set to the same region you initially selected for Cloud9.
theme-park-frontend.
You will see when the CodeCommit repository is successfully created.

Once your CodeCommit git repository is created, you’ll need to pull in the existing files for your frontend app from GitHub and sync to your new CodeCommit repository.
Make sure your region is set to the same region you initially selected for Cloud9.
git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true
mkdir ~/environment/theme-park-frontend
cd ~/environment/theme-park-frontend
wget https://innovator-island.s3-us-west-2.amazonaws.com/front-end/theme-park-frontend-202110.zip
unzip theme-park-frontend-202110.zip
Within the Cloud9 file browser on the left hand side you can see the theme-park-frontend files have been downloaded into a separate local directory from the theme-park-backend.

cd ~/environment/theme-park-frontend/
git init -b main
git add .
git commit -am "First commit"
AWS_REGION=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/\(.*\)[a-z]/\1/')
git push --set-upstream https://git-codecommit.$AWS_REGION.amazonaws.com/v1/repos/theme-park-frontend main

Next you’ll use the AWS Amplify Console to deploy the frontend website you’ve just committed to the CodeCommit git repository. The Amplify Console takes care of the work of setting up a place to store your static web application code and provides a number of helpful capabilities to simplify both the lifecycle of that application as well as enable best practices.
Launch Amplify Console.
Scroll down to the Get started section, then choose Get Started in the Deliver panel.

Under Host your web app, select AWS CodeCommit and select Continue.


On the Configure Build settings page, leave the defaults, scroll down and select Next.
On the Review page, verify the settings and select Save and deploy.
The deployment process will take a few minutes to complete. Once the build has a completed the Verify stage, select the Amplify provided link for your app.

This will open the published URL in your browser. You will see the empty park map with a navigation bar. At the moment, there is very little functionality in the application but we will add those features next.
Copy the published URL of your web app into your scratch pad. You will need this throughout the subsequent modules.
You can also open the URL on your mobile device. This PWA is designed for mobile, so the responsive layout will adjust for different device sizes.
Once you have tested the public URL on a browser and a mobile device, you can start to build the backend.
After Amplify Console has deployed the app, open the published URL in the Google Chrome or Mozilla Firefox browser.
