The focus of this assignment is process over product. Each example script builds on the previous one. We're starting small and working iteratively. Download this gist and work off of my examples to build your own scripts. You should run the code on your local machine using Node and Servi. See below for how to submit the completed exercise.
TASK: Create a server in Servi to manage a barebones, text-based website. The site will have the following elements:
- A home page
- Two or more additional static pages, such as "About", "Jokes", "Cat Photos", "Resume", etc. etc.
- A set of dynamically generated pages that all have the same basic structure, but change content based on information provided by the user in the URL. For example, on Facebook, each person's profile page looks basically the same, it just has their particular name, posts, photos, etc. Of course, your task is much more simple. For example you might have a page that says "Hello Jack" vs. "Hello Jill".
More details about how to acheive this technically are in the comments of the code files themselves. Also read the Routing section of my wiki article about Using Servi. You can also refer to the Official Servi Documentation.
###To Submit the Assigment
When you are ready to submit the assignment, fork this gist project and edit each of the files to contain your code instead of mine. Overwrite the README.md
document to describe your project and your process.