GithubHelp home page GithubHelp logo

iliutastoica / gotham_imperial_hotel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talater/gotham_imperial_hotel

0.0 2.0 0.0 1.38 MB

๐Ÿ“˜ Code for Building Progressive Web Apps book

Home Page: https://pwabook.com/

License: MIT License

JavaScript 52.16% CSS 17.60% HTML 30.24%

gotham_imperial_hotel's Introduction

Gotham Imperial Hotel

Welcome to the completely fictional Gotham Imperial Hotel.

Building Progressive Web Apps

As you read through the Building Progressive Web Apps book, you will take this simple site (branch: ch02-start), and turn it into a full featured progressive web app (branch: ch12-end).

You will use service workers so that it loads almost instantly (even on the slowest connections), making sure all of its features are available even when your users are completely offline (including seeing their reservations and even making new ones). You will learn how to let users add an icon to launch your progressive web app from their device's homescreen. Finally, you will complete the native app-like experience by adding the ability to reach your users with push notifications, even after they have left your site.

Working with the code

To get started, open your computer's command prompt (the console), change to the directory you would like to download the code to, and run the following commands:

git clone -b ch02-start [email protected]:TalAter/gotham_imperial_hotel.git
cd gotham_imperial_hotel
npm install

These commands will clone the source code for the Gotham Imperial Hotel web app, change to the branch named ch02-start, and install the dependencies needed to run it.

Next, you can go ahead and start a local server to serve the site with the following command:

npm start

If you now open http://localhost:8443/ in your browser, you should see the Gotham Imperial Hotel site.

As the code of each chapter builds on changes made in previous chapters, at the beginning of each chapter your code will need to include all of those changes. If you skipped over any of the coding exercises in the book, or even whole chapters, you can always bring the code to the state it should be at in the beginning of that chapter by checking out the branch for that chapter.

For example, before starting chapter 5 you can run the following:

git reset --hard
git checkout ch05-start

Detailed instructions for working with the code are available in chapter 2 of the book.

Prerequisites

Author

Tal Ater: @TalAter

License

Licensed under MIT.

gotham_imperial_hotel's People

Contributors

talater avatar wilsonandusa avatar

Watchers

Iliuta Stoica avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.