NodeJS

Project: Basic Informational Site

new

NodeJS Course

A Node website!

By now you should know enough to be dangerous. There’s definitely more to learn but you already know enough about Node to actually make something! So let’s do it! You will be creating a very basic informational site that contains 4 pages: index, about, contact-me and 404. Keep in mind that the content of these pages isn’t really all that important. So there’s no need to spend a lot of time filling them up or trying to make them look pretty.

If you get stuck at anytime, feel free to go back to the Getting Started lesson, especially the W3 schools tutorial at the end.

Assignment

  1. Make a project directory and create the following files inside that directory:
    • index.html
    • about.html
    • contact-me.html
    • 404.html
  2. Create your node.js server file index.js and add the code needed to serve the right page according to the url.

Submitting a solution

If you’re planning to submit a live demo with your student solution, one of the easiest ways to do that is using Replit. To do this:

  1. Go to replit.com
  2. Create a new repl
  3. Enter the url for your submission github repo and click “Import from GitHub”
  4. Change the language to Node.js
  5. Click the “Run” button and you should get the URL to your demo in the URL bar of the repl’s web view.

Support us!

The Odin Project is funded by the community. Join us in empowering learners around the globe by supporting The Odin Project!