All Projects → tomwayson → esri-preact-pwa

tomwayson / esri-preact-pwa

Licence: MIT license
An example progressive web app (PWA) using the ArcGIS API for JavaScript built with Preact

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to esri-preact-pwa

maji
Maji is a framework to build great hybrid mobile apps.
Stars: ✭ 18 (+38.46%)
Mutual labels:  preact
luck-or-hardwork
Simple web-app to provide illustration about a take on luck and hard work.
Stars: ✭ 29 (+123.08%)
Mutual labels:  preact
bassdrum
reactive, type safe components with preact and rxjs.
Stars: ✭ 44 (+238.46%)
Mutual labels:  preact
shopping-list-preact-pouchdb
Shopping List is an Offline First demo Progressive Web App built using Preact and PouchDB.
Stars: ✭ 18 (+38.46%)
Mutual labels:  preact
preact-native
client native implement of preactjs(https://preactjs.com/)
Stars: ✭ 17 (+30.77%)
Mutual labels:  preact
preact-journal
14k offline-capable journaling PWA using preact, node, MySQL, and IndexedDB.
Stars: ✭ 33 (+153.85%)
Mutual labels:  preact
moonwave
🌗 A small web application framework.
Stars: ✭ 14 (+7.69%)
Mutual labels:  preact
WorkerStore
Small React state container running inside WebWorker
Stars: ✭ 32 (+146.15%)
Mutual labels:  preact
preact-cli-plugin-netlify
Preact cli plugin for generating h2push headers and redirects rules for netlify
Stars: ✭ 25 (+92.31%)
Mutual labels:  preact
preact-styled-jsx-demo
Preact + styled-jsx = 💞
Stars: ✭ 16 (+23.08%)
Mutual labels:  preact
go-preact-starter
Starter for combining Go and Preact in any web project.
Stars: ✭ 19 (+46.15%)
Mutual labels:  preact
anonymous-web
💬 A PreactJS powered progressive web (chat) application (Not active)
Stars: ✭ 28 (+115.38%)
Mutual labels:  preact
fpreact
fpreact provides an alternative api for creating preact components, heavily inspired by elm.
Stars: ✭ 47 (+261.54%)
Mutual labels:  preact
rainbow-explorer
🌈 A 20kb Preact & Redux based Progressive Web App that translates real life color to digital color.
Stars: ✭ 26 (+100%)
Mutual labels:  preact
tic-tac-toe-app
Online multiplayer Tic Tac Toe game for iOS, Android, and web.
Stars: ✭ 34 (+161.54%)
Mutual labels:  preact
agrippa
The CLI for frontend component generation
Stars: ✭ 555 (+4169.23%)
Mutual labels:  preact
tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (+307.69%)
Mutual labels:  preact
snap-state
State management in a snap 👌
Stars: ✭ 23 (+76.92%)
Mutual labels:  preact
awesome-arcgis
La mayor recopilación (Wiki) de recursos sobre ArcGIS que encontrarás (organizado por productos, conceptos, ...)
Stars: ✭ 21 (+61.54%)
Mutual labels:  arcgis-api
progressive-web-app-starter
Preact based starter kit for making a Progressive Web App (PWA).
Stars: ✭ 19 (+46.15%)
Mutual labels:  preact

esri-preact-pwa

An example progressive web app (PWA) using the ArcGIS API for JavaScript built with Preact.

View it live

screen shot

The non-map routes get a near perfect Lighthouse performance score, and even the map route scores in the mid 70s (out of 100), which is outright decent for a web mapping application.

performance audit results

This repository was cloned from preact-starter and uses esri-loader to lazy load an ArcGIS web map. See those repositories for more detailed information.

Install

Pro Tip: Use Yarn to install dependencies 3x faster than NPM!

git clone https://github.com/tomwayson/esri-preact-pwa
cd tomwayson/esri-preact-pwa
npm install
npm run build
npm start

Features

  • Offline Caching (via serviceWorker)

  • SASS & Autoprefixer

  • Asset Versioning (aka "cache-busting")

  • ES2015 (ES6) and ES2016 (ES7) support

  • Hot Module Replacement (HMR) for all files

  • Preact's Developer Tools

  • Lighthouse certified

    lightouse

Development

Commands

Any of the following commands can (and should 😉) be run from the command line.

If using Yarn, all instances of npm can be replaced with yarn. 👌

build

$ npm run build

Compiles all files. Output is sent to the dist directory.

start

$ npm start

Runs your application (from the dist directory) in the browser.

watch

$ npm run watch

Like start, but will auto-compile & auto-reload the server after any file changes within the src directory.

Preact Developer Tools

You can inspect and modify the state of your Preact UI components at runtime using the React Developer Tools browser extension.

  1. Install the React Developer Tools extension
  2. Import the preact/devtools module in your app
  3. Reload and go to the 'React' tab in the browser's development tools

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].