Aller au contenu

TP02 : Deliver the Results of the Introduction to Node.js codelab

In this assignment, you will deliver the results of the Introduction to Node.js codelab.

You must deliver the code of your Node.js application on git. When loading the Node.js application into WebStorm, one must be capable of successfully testing the application locally, without any other step than performing npm install.

Goals

This assignment should familiarize students with Node.js and the related JavaScript concepts. It is the basis for building the application that implements your RESTful API specification.

At the end of this assignment, students:

  • have installed all required tools for writing Node.js applications using WebStorm;
  • will know how to use those tools;
  • will understand the important concepts behind any Node.js application;
  • will know how to use git for delivering the expected content.

The deliverables of the assignement are:

  • a git repository named “tp02” in your group on “gitlab.forge.hefr.ch” with the Node.js application. Note that the Node.js modules required for the application must NOT be pushed to the repository, but must rather be added to the project/application depedencies;
  • a report in pdf format delivered using the related Teams assignment.
  • a fix for all issues that have been reported for “tp01”. Issues will be reported at latest 4 days before the deadline for delivering tp02. The guidelines for fixing issues are given below.

Deadline

The deadline for delivering this assignment is given in the semester planning and in the corresponding assignment on Teams.

Questions

Add a section in your report that answers the question raised in the Node.js related exercises.

Fixing the issues of the previous assignement

For each issue created in the repository of your previous assignement, you must:

  • Create a merge request from the issue panel (using the “Create merge request and branch” button).
  • Choose an appropriate name for the branch (in this example MR-BRANCH-NAME).
  • The branch must be created from the “main” branch and the merge must be made towards the “main” branch.
  • Choose “Serge.Ayer” as reviewer of the merge request.
  • Execute “git fetch” from the project folder on your computer.
  • Execute “git checkout MR-BRANCH-NAME” on your computer.
  • Fix the issue, then “git add …”, “git commit -m …”
  • Execute “git push MR-BRANCH-NAME”
  • If there are any pipeline job, check that the jobs were successfully executed.
  • In the case that the merge request is accepted, then the merge is done and the issue is closed.

Report

The report must follow the following guidelines:

  • It must be written in French or English.
  • One title page with at least:
    • the school name and logo (official logo)
    • the course name : Module Application des données : Développement back-end
    • the title of the document : “Travail Pratique 2 : Introduction à Node.js”
    • your group number
    • the authors’ name
    • the report delivery date
  • One short introduction for describing the context and goals
  • A summary of the concepts that are important and that you should retain/fully understand, by commenting whether
    • the concept is not well understood (non acquis);
    • the concept is essentially understood, but some points remain to be exercised; (acquis, à exercer);
    • the concept is fully undertood (acquis).
  • The answers to questions of these exercises.
  • The parts of the code/source/specification that should be highlighted and that require specific attention.
  • Some conclusions like what you have liked or not, remarks on how the codelab or assignement can be improved, and the number of hours that you have spent for each student of the group (outside hours in the classroom).

Important

Deliver your report based on instructions received during the lesson and according to the schedule. Your document must be named “report02.pdf”.