Greeting forms

A Greet route
Create a simple Web Application using ExpressJS with a route that allows you to greet different people using a HTTP GET route. The route should be called /greetings and accepts the username as part of the URL. To greet 'Joe' the use the route like this http://localhost:3000/greetings/Joe
The route should respond with a message like this Hello, Joe or whatever other name was specified in the URL.
Counter route
Create a route called /greeted that displays a list of all the users that have been greeted.
User greeted route
Create a route called /counter/<USER_NAME> that shows how many times a user has been greeted. Display a message like this: Hello, <USER_NAME> has been greeted <COUNTER> times. Add a link from the /greeted page - where you can click on a user in the list to see how many time the user has been greeted.
Setup
In your projects folder create a folder greetings-webapp. In the greetings-webapp folder create a file called index.js. Create your web server in index.js for this exercise.
Required skills
ExpressJS
How to:
- setup an ExpressJS server instance
- how to create a GET route in ExpressJS
- storing global variables in ExpressJS
- Learn ExpressJS by watching this Team Treehouse video about ExpressJS basics and this one about ExpressJS middleware
GitHub
Commit to GitHub