Running Our First Application

Learn how to run the web application

Application entry point

In this application, we have our index.html page, in which we can see a meta tag wrapped inside head tag along with the link tag that holds the link for the favicon.ico file. Next, we have a title tag and a div with a root id wrapped up inside the body tag.

This is what the application looks like:

Copyright (c) 2020 John Sheehan

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Setting up the index.html

Explanation

We have an index.html file that acts as the application entry point, which we’ll be hooking into with React. So, this will go into the bookapp/client/src/ folder:

Let’s have a look at few extras that are added in this version of index.html:

  • Line 5 and 6: We configure the display area for different devices using a meta tag.
  • Line 9: The link for a custom favicon.ico file.
  • Line 18: A few defaults like title and a temporary
...