Skip to content

alebausa/express-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressJS Hello World 👋🏼

🏔 Welcome to your first project using ExpressJS! This project already uses expressJS, and your mission is to write the application according to the instructions. It also contains a data.json with data to work with, which is already required in the project.

Iteration 0

  • Install the package nodemon using npm
  • Create a script called "dev" in the package.json file to execute the command nodemon index.js
  • Run the command and make sure everything is okay. If it is, you are ready to work!

Iteration 1

  • Write a GET route to the path '/' that sends an HTML response with the following message:
Hello world!

Iteration 2

  • Write a GET route to the path '/loan' that sends a JSON response with the students that currently have a loan.

Iteration 3

  • Write a GET route to the path '/score' that sends an HTML response with the following message:
<h2>The group's average score is [num]</h2>

You will have to calculate the average first and then pass it to the HTML response. Make sure the avg is returned with only TWO decimals.

Done! Good job 👯‍♂️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published