After successfully wiring up the database, you will create a secondapplication, app_api, to separate the RESTful endpoints. This approachis known asSeparation of Concerns,which amounts to separating an application into logical layers orsegments to reduce complexity, minimize the scope and effort of futurechanges, and reduce the chance of defects going undetected. Thisrefactoring allows for three different clients—Angular.js, Expressbackend, and any external callers (applications)—to use the API whenintegrating Angular into your application.
In this assignment, you will ensure the database and API are wired tothe frontend and complete testing to check routes using the methodsFIND to locate items in a table and GET to retrieve a file.
Refactor the database access code from being embedded within thebackend website logic to a separate top-level site accessed at theendpoint “/API”. Follow the instructions in theRESTful API Architecturesection of theCS 465 Full Stack Guideand perform the following:
After completing your work for this assignment, submit the updatedtravlr.zip zipped file folder, which includes the trips.json file.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here