Launching the ReactJS app
Let's call the amplify add hosting
command to integrate all our code with Amplify Hosting. This will allow us to host the app with a dedicated URL so that we can share it with our friends or customers for user testing. Let's get started:
- Go back to your Terminal and enter the
amplify add hosting
command to configure Amplify Hosting through the Amplify CLI:amplify add hosting Select the plugin module to execute (Use arrow keys) ❯ Hosting with Amplify Console (Managed hosting with custom domains, Continuous deployment) Amazon CloudFront and S3 Choose a type Continuous deployment (Git-based deployments) ❯ Manual deployment You can now publish your app using the following command: amplify publish
- Use the arrow keys to select manual deployment. Then, run the
amplify publish
command to publish the artifacts to the development environment with a staging URL:✔ Successfully pulled backend environment...