In this lab, you’ll build a web-based data service.
Azure supports NodeJS applications that implement data services.
Using the Monopoly data service as a model, create a data service for your own monopoly database (from labs 7 & 8) and deploy it on Azure.
cs262
repo.
.github/workflows
and package-lock.json
files later, so
it’s safer to leave them out at this point.package.json
to
a more current version, and make sure to use that
everywhere.calvin-cs262.postgres.database.azure.com
5432
NODE_ENV
:
production
.
See the README file for details. Update that README.md file to link your service URL, which should provide endpoints that match the following:
For grading purposes, push the following into a
cs262/lab09
sub-directory in your standard course repo:
README.md
file that includes a hyperlink to the
root of your running data service on Azure (e.g., my sample is
at https://cs262-webservice.azurewebsites.net/).
monopolyService.js
; be sure not to include the
.git
sub-directory). Keep your stand-alone service
repo in place because you’ll upgrade it as part of the
homework.
If you get a server error (i.e., HTTP 500 Internal Server Error), there is something going wrong with Web app, often a database access error. The Web server won’t give details because that would give away important details about the service to the public. You, as the developer, can see the actual error by going to the Web service and checking the execution log stream. E.g., for Azure, look under the Overview (tab on the top) → Logs (tab toward the bottom in the middle).
Be sure to consider your preliminary design presentation as part of this planning exercise.
You should actively participate in your team’s retrospective and planning session.