OverviewYou will be building a Node Express application with…
OverviewYou will be building a Node Express application with API endpoints in TypeScript that will be used for reading, adding, updating and deleting tasks. You can use an application like Postman for testing your API. Read the entire question carefully. I have provided the tsconfig.json file under the Final Exam module if you wish you use my version of the file. Make sure that your application runs when you enter “npm start” in the terminal. Instructions Download tasks.json from under the Final Exam module and examine the file data carefully. Do NOT modify this file. You can use any technique you want to use the contents of tasks.json. (You can either read the file or use it in a variable.) Create a GET endpoint that will return all of the tasks as JSON. (5 points) Create another GET endpoint that takes in id as a route parameter and returns the task matching that id. This endpoint will return a status code of 404 with the message “Task not found” if no task matches the provided id. (5 points) Create a POST endpoint that adds a new task to your list based on the fields passed in the body. If any of the fields (id, name, description and status) are missing, you should respond with a status code of 500 with the message “All fields are required.”. If a task is successfully added, return a status code of 200 with the message “Task added.”. (10 points) Create a PUT endpoint that takes in id as a route parameter and updates the task matching that id. (5 points) Create a DELETE endpoint that removes a task from the list based on the id passed in. If a task with the id doesn’t exist in the list, return a status code of 404 with the message “Task not found”. If a task is successfully deleted, return a status code of 200 with the message “Task deleted.” (5 points) After the Express application is restarted, if the GET endpoint from #3 is called, it will display the 4 tasks from tasks.json in the same order as listed in the .json file. Make sure that your application runs on port 3000. Submission Place all of the files needed to run this application in a single zip file. Note: Do NOT include the “node_modules” folder in your zip file, I will deduct 5 points if your zip file contains the “node_modules” folder. The zip file must be named in the format lastname_firstname_final_api.zip. For example using my name it would be shrestha_gaurav_final_api.zip
Read DetailsOverviewYou will be building an Angular application that wil…
OverviewYou will be building an Angular application that will use the Tasks API that you built in the first question to read and write data. Instructions Create a new Angular application and when the page loads it should look similar to Figure 1 below, and you are free to style it however your want. If the status of a task is ‘Complete’, you will show the check.png image, else you will show the red-x.png image. You can download the png images from under the Final Exam module.Figure 1 Your angular application will use the API that you just wrote in Question 1 to retrieve the data to display the 4 tasks. When the “Add Task” button is clicked, you will need to make sure that the 2 fields (name and description) are not empty. You will also need to provide an id for the new task to the API; an easy approach is to find the highest id in the task list and add 1 to it. If either of the 2 fields are missing, you will display a message (All fields are required.) like the following: If the fields are all populated, then the task is added to list and the fields are emptied like shown below: Hovering over a row will display the status for that item as a tooltip. (Hint: Set the title attribute to display the tooltip) If a task’s status is “Complete”, then the “Status” column will display “check.png”. If the task’s status is “NotComplete”, the “Status” column will displayed “red-x.png” instead. Clicking the “Red x” image will call the API and update the task status to “Complete”. Similarly, clicking the “Green check” image will make the API call and update the task status to “NotComplete”. Before:After: Submission Place all of the files needed to run this application in a single zip file. Note: Do NOT include the “node_modules” folder in your zip file, I will deduct 5 points if your zip file contains the “node_modules” folder. The zip file must be named in the format lastname_firstname_final_ui.zip. For example using my name it would be shrestha_gaurav_final_ui.zip
Read DetailsDescribe how you would adopt a balanced score card approach…
Describe how you would adopt a balanced score card approach to evaluate your project performance. Your response should identify specific measures you would use as well as the approach you would take to obtain the measures you identify.
Read Details