# Project: Passing the test

## Introduction

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 lets 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 tutorial from the previous lesson.

## 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.
   * [localhost:8080](http://localhost:8080) should take users to index.html
   * [localhost:8080/about](http://localhost:8080/about) should take users to about.html
   * [localhost:8080/contact-me](http://localhost:8080/contact-me) should take users to contact-me.html
   * 404.html should display any time the user tries to go to a page not listed above.

## Submitting a solution

If you're planning to submit a live demo of your solution, one of the easiest ways to do that is using Repl.it. To do this:

1. Go to [Repl.it](https://repl.it)
2. Create a new repl
3. Select Node.js as the language
4. Enter the url for your submission github repo and click "Import from GitHub"
5. Click the "Run" button and you should get the URL to your demo in the URL bar of the repl's web view.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://howtocode.trek.io/topics/deep-dives/nodejs/project-passing-the-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
