The Dinosaur Search App

In this final module we'll be putting our skills together and building a Dinosaur Search App

Project Source Code

Get the project source code below, and follow along with the lesson material.

Download Project Source Code

To set up the project on your local machine, please follow the directions provided in the README.md file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.

This lesson preview is part of the Beginner's Guide to Real World React course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.

This video is available to students only
Unlock This Course

Get unlimited access to Beginner's Guide to Real World React, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course Beginner's Guide to Real World React
  • [00:00 - 00:05] Module 10, the dinosaur search app. Over the past nine modules, we've covered a lot of ground.

    [00:06 - 00:12] We've learned about React and the part that players is a modular, component- driven approach to building modern responsive frontends. Not only that, but we've.

    [00:13 - 00:26] Hooked it up to an API and made it more data-driven, explored the common hooks they're offered, baked right into React, and extended the core React functionality with third-party libraries such as React Router. You should be feeling pretty pleased with yourself for completing the projects we've built thus far.

    [00:27 - 00:42] Hopefully by now, your React knowledge has grown to immense proportions and your feeling confident in your ability to recognise the core concepts and build your own applications in this popular, powerful library. In this final module, we'll be pulling together all this React knowledge and building a more comprehensive app, the dinosaur search app.

    [00:43 - 00:53] Imagine we have a team of paleontologists who need to be able to look up information on a range of known dinosaurs. We can build an app to help them search for dino info and save a list of their favourites to refer to later.

    [00:54 - 01:01] It'll all be powered by an API that retrieves a list of all required dino data. Let's jump right in and take a look at what we'll be building.

    [01:02 - 01:19] So, we have a simple navigation up top and we start our journey to the main search page. From here we can either enter a name or part name of a dinosaur and search on that, or hit the "I'm feeling lucky" button and be taken to a page of results filled with dinos whose names start with a random letter of the alphabet.

    [01:20 - 01:31] Either option leads to a search results page where we see the list of matching dinosaurs. From here we can favourite them directly which will add them to a list in global app status, allowing users to visit them in a separate area once we've logged in.

    [01:32 - 01:49] If you want to find out more about our particular dinosaur we simply click the button or the dinosaur's name and we can visit a special details page with all the information neatly laid out, including a picture of the beast in question. Finally we can simulate a sign-in process which will allow a then logged in user to view their save favourites in a convenient list.

    [01:50 - 02:06] Planning out the build With larger, more complex apps such as this, even as an MVP where the functionality might be barebones to begin with, it can be helpful to start by mapping out two things. A user journey off-floor and some basic wireframes.

    [02:07 - 02:29] The user journey allows us to roughly map out which parts of the app connect to each other and how a user might never get around an app from a given starting point. With the wireframes we're really aiming to loosely pin together our intended UI , placing components into groups, breaking down sections into more modular chunks and trying to think about what will live on what page or pages, especially important in systems such as React where modularity is the key.

    [02:30 - 02:43] I've already mocked these two things out for you to give you a flavour of how this could look, so let's take a quick peek and see how they can be very useful tools. So here's an example navigation floor or user journey for our small dinosaur search in app.

    [02:44 - 02:52] You can see that we start our users out by hitting the search page which will act as our home or default landing page. This kicks off the main floor of the app which should work like this.

    [02:53 - 03:00] From the starting page users trigger a search for a dinosaur. Next, they're taken to a results page to see a list of matching dinosaurs returned from the API.

    [03:01 - 03:15] From here they can keep searching or choose to view specific details of a particular dinosaur on the DINL details page. If they wish to sign into the app they can visit the login page from any of the main navigation pages, but they can only view the favourite page once they've authenticated.

    [03:16 - 03:31] So users must visit the login page first and then the favourites. Of course once they're logged in we'll enable the favourites link from the main navigation so they can get to it anytime, but for the purposes of this flow diagram we want to explicitly call out the deliberate need to visit the login then favourites.

    [03:32 - 03:47] This is quite a simple diagram, but we're only building a relatively simple app , even though it'll be more complex than the projects we've built so far. You might see lots of different versions of this sort of flow diagram in the wild, from actual flow diagrams with the correct diagram structures and types to rough hand drawn sketches and everything in between.

    [03:48 - 04:02] Sometimes they may be larger in nature encompassing more of the app all at once , or they might just show the floor for a particular area of functionality. Whatever their approach, the aim is to give you an at a glance view of how the user will flow through various distinct parts of the pages within your app.

    [04:03 - 04:12] They can help immensely during the planning phase of any app you're going to build. We're not going to dwell on the wireframes for too long as I'm sure you're keen to get building and put your react muscles to good use.

    [04:13 - 04:22] Let's move through the rough and ready wireframes for each of the pages we saw in the previous flow diagram. You can see that each page's wireframe is much like the flow diagram, quite simple and low-fi.

    [04:23 - 04:42] What we're doing here is getting down on paper, so to speak, the general idea of which parts of the UI will live on which pages and roughly how they're intended to look. Again, in the wild you might see lots of different versions of this sort of thing from hand drawn sketches, physical paper models to really simplistic low- fi versions through to full-on UI mock-ups made by design teams.

    [04:43 - 04:57] Just like the user journey diagram, the idea with wireframes is to give a general starting direction for the feel of the UI. What sort of data will be displayed on the page and what where and with which key interaction points, things like animations, parts of the UI that switch or change and so on.

    [04:58 - 05:05] There helps so much by providing a reference point that you can keep coming back to whilst building the component or part of the application. Building the app.

    [05:06 - 05:20] With this being a larger, more complex app than we've built thus far in the course, the remaining lessons in this module will be broken down like this. In lesson two, we'll get all of the projects scaffolding and setup done, including looking at the API we'll be using and adding in the skeleton react router structure.

    [05:21 - 05:32] In lesson three, we'll add in some services that will act as a kindly data-f airying middleman, providing data to our components and updating items in our Redux star. In lesson four, we'll flesh out the components in the UI parts of the app.

    [05:33 - 05:41] And finally, in lesson five, we'll fire everything up and bask in our mighty coding glory as we take the dinosaur search app for a test flight. Let's dive in and get cracking.

    [05:42 - 06:01] Inhale.