W01 Learning Activity: Deploy Your Application
Overview
- Purpose: Learn about deploying a web application.
- Task: Read the following information and complete the activity instructions below.
In this activity, you will sign up for a free hosting account at Render.com and deploy your application.
Activity Instructions
Complete the following steps:
Create the Render web service
You will create a Render web service and connect it to your GitHub repository.
- In a browser, navigate to Render.com and sign in with your GitHub account.
- On the Render dashboard, choose to create a new Web Service.
- Authorize Render to access your GitHub repositories if prompted.
- Select the repository for your books API project.
- Review the service settings before deploying.
- Select a region that is as close to your location as possible.
- Ensure that the Build command is set to
npm install. - Ensure that the Start command is set to
node server.js. - Select the Free instance type.
- Click the button to deploy your web service.
Deploy and verify the application
After the service is set up, deploy it and check that the root route works from the public URL.
- After you start the deployment, wait for the build logs to show a successful deploy. If any errors occur, address them before proceeding.
- Open the URL Render gives you in your browser. Because this is a free service, the first time you visit your deployed application, it may take a moment to load.
- Verify that the root route responds with JSON and that the request succeeds with HTTP status 200.
- Make a note of the deployed URL so you can reference it later.
Next Step
Complete the other Week 01 Learning Activities.
Other Links:
- Return to: Week Overview | Course Home