Important Notes:
- You must format the code using
prettierbefore submitting it.- You must read the problem description carefully before making your submission. Do not miss the details - the program should perfectly match the specifications.
- Take your time, sweat the details, and make every submission count!
To complete this level: Add a new registration route to the application and serve the registration form that you have created in the WD101 course. Also update the application to accept a port argument as input and use the supplied port number to create a server.
- Create a new
registration.htmlpage in your application that you created in the previous lesson. You need to use the sameregistration.htmlpage created in WD101 course as a part of Capstone. - Create a new route
/registrationin the application that serves the registration page created in the previous step. - Add a new link in the
project.htmlpage underProjects Listthat points to the new registration page. Ensure that you can now navigate from the projects page to the registration page using the link. - Add a new command line argument to the application named
portand use the supplied port number while creating the server inindex.js. For example, runningnode index.js --port=5000should spin up a server that listens to port 5000. - Push the contents of the project to a new public repository and submit the same from the Submissions tab. The files must be present in the root of the repository and not inside any folder.
- ...the submitted URL is that of a public repository and not of any branch or folder inside a repository.
- ...your repository has
index.js,project.html,home.html,registration.htmlfile in the root which contains your code. - ...the new route added is
/registrationthat serversregistration.html - ...the
/projectpage has a link to the registration page - ...the
registration.htmlcontent is precisely what was submitted in the WD101 capstone. - ...running
node index.js --port=5000starts a server that listens to the port5000and serves your pages. - ...argument name for port is named
port
Your submission will be reviewed automatically using a test script. The conditions mentioned above should be followed exactly to ensure that these tests can identify the required files and test the application.