Next.js PWA Boilerplate starts your progressive web app off with a perfect Google Lighthouse score. To see this in action, open the website with Chrome, go to the “Audits” tab in dev tools, and click “Run audit”.
- React.js - A JavaScript library for building user interfaces
- Styled Components - Use the best bits of ES6 and CSS to style your apps without stress
- Next.js - A minimalistic framework for server-rendered React applications
- ZEIT Now 2 for hosting the app on the web with auto-scaling, auto-renewing of SSL certs, and the ability to add any lambda functions in any other language
Must have Git and Node.js installed:
git clone https://github.com/pingboard/next-pwa-boilerplate
npm i
- Replace all images in
./static/graphics/
with your desired app icons, splash screens, and thumbnail for social sharing. If you have Sketch, you can use the artboards included in./graphics.sketch
. Ensure that all replacement graphics include the same filenames, file type, and dimensions.
npm run dev
and go to http://localhost:3000
- Make an account on ZEIT.
- Install Zeit’s Now CLI:
npm install -g now
- Change the name and alias on
now.json
to your unique string. If you don’t have a full domain with ZEIT,yourUniqueString.now.sh
will the domain. - Replace the
next-pwa-boilerplate
insidehttps://next-pwa-boilerplate.now.sh
in./pages/_document.js
with the same string as the previous step.
npm run deploy