CSE 341: Web Services

W01 Learning Activity: Deploy Your Application

Overview

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.

  1. In a browser, navigate to Render.com and sign in with your GitHub account.
  2. On the Render dashboard, choose to create a new Web Service.
  3. Authorize Render to access your GitHub repositories if prompted.
  4. Select the repository for your books API project.
  5. Review the service settings before deploying.
  6. Select a region that is as close to your location as possible.
  7. Ensure that the Build command is set to npm install.
  8. Ensure that the Start command is set to node server.js.
  9. Select the Free instance type.
  10. 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.

  1. After you start the deployment, wait for the build logs to show a successful deploy. If any errors occur, address them before proceeding.
  2. 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.
  3. Verify that the root route responds with JSON and that the request succeeds with HTTP status 200.
  4. Make a note of the deployed URL so you can reference it later.

Next Step

Complete the other Week 01 Learning Activities.

Other Links: