Skip to content
Switch branches/tags
This branch is 9 commits ahead, 4 commits behind gabrielecirulli:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


A small clone of 1024, based on Saming's 2048 (also a clone).

Made just for fun and to demonstrate how easy it is to be a Progressive Web App (PWA).

Play it here! Read the Blog Post on How this App Was Upgraded to a Progressive Web App

Progressive Web Application Development by Example

Progressive Web Application Development by Example

This is the code repository for Progressive Web Application Development by Example, published by Packt.

Develop fast, reliable, and engaging user experiences for the web

What is this book about?

Are you a developer that wants to create truly cross-platform user experiences with a minimal footprint, free of store restrictions and features customers want? Then you need to get to grips with Progressive Web Applications (PWAs), a perfect amalgamation of web and mobile applications with a blazing-fast response time.

This book covers the following exciting features:

  • Explore the core principles of PWAs
  • Study the three main technical requirements of PWAs
  • Discover enhancing requirements to make PWAs transcend native apps and traditional websites
  • Create and install PWAs on common websites with a given HTTPS as the core requirement
  • Get acquainted with the service worker life cycle

If you feel this book is for you, get your copy today!

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

 function renderResults(results) {

        var template = document.getElementById("search-results-
            searchResults = document.querySelector('.search-results');

Following is what you need for this book: Progressive Web Application Development by Example is for you if you’re a web developer or front-end designer who wants to ensure improved user experiences. If you are an application developer with knowledge of HTML, CSS, and JavaScript, this book will help you enhance your skills in order to develop progressive web applications, the future of app development.

With the following software and hardware list you can run all code files present in the book (Chapter 1-10).

Software and Hardware List

Chapter Software required OS required
1-10 Nodejs 6.1 or above Windows, MacOS or Linux supported by NodeJs and has a browser
Chrome, Microsoft Edge,
FireFox, Opera or Safari
Visual Studio Code or Sublime

Related products

Get to Know the Author

Chris Love Chris Love is a frontend developer with 25 years of professional experience. He has won the Microsoft MVP award for 12 years and has authored multiple books. He has helped over 1,000 businesses of all sizes and from various industries.

Chris regularly speaks at user groups, code camps, and developer conferences, and also writes articles and videos to help fellow developers.

When he's not working on frontend development, you can find him spending time with his step-kids, doing karate, and taking part in Spartan races.

Suggestions and Feedback

Click here if you have any feedback or suggestions.


Chris Love is the maintainer of this repository.

Other notable contributors:

Many thanks to rayhaanj, Mechazawa, grant, remram44 and ghoullier for the many other good contributions.

Read About 2048 PWA

Read the Blog Post


Changes and improvements are more than welcome! Feel free to fork and open a pull request. Please make your changes in a specific branch and request to pull into master! If you can, please make sure the game fully works before sending the PR, as that will help speed up the process.

You can find the same information in the contributing guide.


2048 is licensed under the MIT license.


I made this in my spare time, and it's hosted on GitHub (which means I don't have any hosting costs), but if you enjoyed the game and feel like buying me coffee, you can donate at my BTC address: 1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i. Thank you very much!


A Progressive Web App Version of 2048




No releases published


No packages published