From the course: JavaScript: Service Workers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Prepare the project

Prepare the project - JavaScript Tutorial

From the course: JavaScript: Service Workers

Start my 1-month free trial

Prepare the project

- [Instructor] In this chapter, we are going to work with cache storage. For working with cache storage, we are going to use a real project because that's how we can make an offline capable website or offline capable app. For that, you can open 0402 Begin from the project files. And there you will find four HTML files, three JavaScript files, and folders for CSS, images, and videos. It's a website for some California tours. If you open the terminal, we can serve the current folder and see this website in action. Now, we need to open this URL, the URL you see in the terminal, in the browser. And this is how it looks like. It has three links: Tools, mission, resources. And the index HTML, the homepage. In the homepage, we have some weather information that is using a current API, using the fetch API, to get the weather. If I refresh, you can see that information is coming dynamically from an API. If we open Developer Tools from the menu, Inspect, or More Tools, Developer Tools. When we…

Contents