A Sample Application for the SSDUG Front End Face Off.
Getting Started
- Install Node v8.2.1 or Above.
- Install Visual Studio Code, the Insiders Edition is highly recommended.
- Clone the repository:
git clone https://github.com/NotMyself/ReactNorris.git
- Change directory into the cloned repository
cd ReactNorris
. - Restore packages:
npm install
. - Open the directory in Visual Studio Code:
code .
. - Open the integrated terminal:
ctrl ~
. - Start the development server:
npm start
.
A browser window should open and display the site.
Note: You can also continuously run the unit tests by opening another terminal window and running the command npm test
.
Requirements & Implementations
- The UI must be built on Bootstrap 4.0.
- ReactNorris uses reactstrap, a set of Bootstrap 4 based React components.
- I must be able see the available categories from https://api.chucknorris.io.
- The home page features a Bootstrap based dropdown button. This button defaults to
Random
. The user can see the list of categories in the dropdown list.
- The home page features a Bootstrap based dropdown button. This button defaults to
- I must be able to select an available category, and retrieve a Chuck Norris joke from the selected category.
- The user can select any of the categories of Chuck Jokes from the dropdown list. Clicking the button will display a random joke from that category.
- I want to make a random joke appear every so many (5?) seconds on the website.
- The user can flip the toggle switch below the Joke Card to automatically refresh with a new random joke from the selected category every 5 seconds.
- I want to be able to toggle the random joke train on/off with a stylish switch. (Must use a 3rd party component)
- Toggle switch makes this functionality happen. It uses react-switch a third party React component.
- I must be able to search jokes with free text
- Click the
Search
menu item to view the search page. The user can enter text and click the search button. All results will be displayed.
- Click the
- I must be able to see an image of Chuck Norris or digital representation of Chuck Norris.
- The Joke Card display shows the image associated with the joke from the api results. Sadly, the image does not appear to change.