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.
Push your service code to a new GitHub repo. This is a
stand-alone repo, not your standard cs262
repo.
salt.db.elephantsql.com
); DB_PORT (5432);
DB_USER; & DB_PASSWORD). See your ElephantSQL
account for the appropriate values. Note that this
approach allows us to keep these values out of our
(public) GitHub repo. Also, add a key-value pair for
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 server errors, go to the Web service and check the execution log. Do this by logging into your service and go to your app. E.g., for Azure, look under the Overview (tab on the top) → Logs (tab 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.