Git Product home page Git Product logo

instant-seamless-demo's Introduction

Instant & Seamless Demo Web App

This project includes scripts and configuration files to build the sample web app which showcases some of new browser APIs that make loading experience nearly instant and navigation more seamless. The app is also built for the referrence of how those new APIs are integrated into Next.js.

We cover following APIs:

Branches

We have following branches in this repository:

  • main: All APIs are live, and it includes API latest changes.
  • codelab: Any features are not implemented yet. This branch is the initial point of the codelab.
  • codelab-complete: All APIs are live, This branch is the snapshot of the final state of the codelab.

Codelab

We have the codelab introducing each API and demonstrating how to enable them by editing the sample app step by step. If you're going to walk through the codelab from the begining, please checkout the branch named codelab in this Github repository. The branch is the snapshot of the initial state of the sample app, and the codelab guides you to implement each API along with the branch.

How to run the app

For local development

$ npm run dev

For production

$ npm run build
$ npm run start

Then visit http://localhost:3000/

Note

When running your application locally with next dev, your headers are overwritten to prevent caching locally. https://nextjs.org/docs/going-to-production#caching

Cache-Control: no-cache, no-store, max-age=0, must-revalidate

To check if BFCache works, you need to run the app with production mode.

instant-seamless-demo's People

Contributors

sisidovski 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.