Read these instructions carefully. Understand exactly what is expected before starting this Sprint Challenge.
This challenge allows you to practice the concepts and techniques learned over the past sprint and apply them in a concrete project. This sprint explored Applied JavaScript. During this sprint, you studied DOM and components. In your challenge this week, you will demonstrate your mastery of these skills by creating an online Lambda newspaper.
This is an individual assessment. All work must be your own. Your challenge score is a measure of your ability to work independently using the material covered through this sprint. You need to demonstrate proficiency in the concepts and objectives introduced and practiced in preceding days.
You are not allowed to collaborate during the sprint challenge. However, you are encouraged to follow the twenty-minute rule and seek support by dropping a 👋 in your help channel when needed.
You are going to create a Lambda Newspaper. Your job is going to be to create the components that make up the newspaper's home page.
In meeting the minimum viable product (MVP) specifications listed below, your project should look similar to the image linked below:
- Create a forked copy of this project.
- Clone your OWN version of the repository (Not Lambda's by mistake!).
- Create a new branch:
git checkout -b <firstName-lastName>. - Implement the project on your newly created
<firstName-lastName>branch, committing changes regularly. - Push commits:
git push origin <firstName-lastName>.
- Navigate to the root of the project with your command line.
- Run
npm installto download the dependencies listed in thepackage.jsonfile. - Run
npm startto compile the project and serve it. - Navigate Chrome to the URL indicated in the output of the
npm startcommand.
Your must complete all the following steps:
- Step 0 is to link
src/index.jsto thesrc/index.htmlfile using a script tag. - Steps 1 and 2 are explained inside the
src/components/header.jsfile. - Steps 3 and 4 are explained inside the
src/components/tabs.jsfile. - Steps 5 and 6 are explained inside the
src/components/card.jsfile.
Important Notes:
- Please do not move or rename existing files or folders.
- Careful adding your script tag in Step 0: the code inside
index.jsneeds the DOM to be fully built before executing. - Careful if you choose to install Axios using another script tag: the order in which script tags execute is important.
- If your development server stops "auto reloading", manually kill it and restart it.
- Do not change the
package.jsonfile except to install libraries with NPM (Axios is already in thepackage.json). - In your solution, it is essential that you follow best practices and produce clean and professional results.
- Schedule time to review, refine, and polish your work, including spell-checking and grammar-checking.
- It is better to submit a challenge that meets MVP than one that attempts too much and does not.
IMPORTANT: Work on stretch goals in a new branch. You can branch off of <firstName-lastName> by executing git checkout -b stretch.
After finishing your required elements, you can push your work further. These goals may or may not be things you have learned in this module but they build on the material you just studied. Time allowing, stretch your limits and see if you can deliver on the following optional goals:
- Use the tabs at the top of the page to filter articles by topic.
There are two possible ways to submit this project to Canvas. Lambda Staff will let you know which one to use:
- Submitting a pull request to merge
<firstName-lastName>branch intomain. - Setting up your fork on Github to submit via Codegrade, pushing commits to your
<firstName-lastName>branch.
Be prepared to demonstrate your understanding of this week's concepts by answering questions on the following topics. You might prepare by writing down your own answers before hand.
- What is the DOM?
- What is an event?
- What is an event listener?
- Why would we convert a NodeList into an Array?
- What is a component?