Coder Social home page Coder Social logo

pwa's Introduction

19 Progressive Web Applications (PWA): Text Editor

Github License

Description

This is Progressive Web Application (PWA) for a Javascript based text editor. It is a single page application that uses various data persistence techniques that serve as a redudancy in case an option is not supported by browser. The app also functions offline and also has an install feature. Data is stored and retrieved through the IndexedDB database API through the idb package.

The app fits the needs of a user that wants to create notes or code snippets, either online/offline, so that they can be easily used later. When a user opens the editor, then the user should be able find that IndexedDB has immediately created database storage by checking with devtools. Wehen entering content and then clicking off the DOM window, the application saves the data with IndexedDB. When a user reopens the text editor after closing it, the content in the text editor persisest and is retrieved from the IndexedDB storage. Users can click the install button feature to download the web app as an icon on their desktop as well. When the web application loads, a registered service worker using workbox should exist. When a service worker is registered, then the static assets pre cached upon loading along with subsequent pages and static assets are there.

Table of Contents

Installation

  1. To install just clone this repo:
git clone [email protected]:hculp/readme-generator.git
  1. Install all the associated packages in the package.json with npm:
npm i
  1. To start the application run
npm run start

This will also build the client side dist folder that creates the bundled Javascript files with webpack that includes the generated HTML file, service worker, and manifest file.

Usage

Once the application is installed and running, enter some code text first to test that the application is running properly, and check the browser devtools simiarily done here to ensure all features work or if any modifications are needed to meet specifications.

This image is an example that shows the application's manifest.json file. This image is an example that shows the application's registered service worker. This image is an example that shows the IndexedDB storage.

Test the live application site on Heroku here.

Contribution

Contribution falls under open MIT license.

Technologies

The main packages used to run this application are:

  • Babel
  • Webpack and Workbox associated utilities
  • Express.js
  • NodeJS
  • IndexedDB
  • Code mirror themes

Questions

Send any questions or feedback to the following contacts:

License

Copyright (C) 2023 Houston Culpepper.

Distributed under the MIT License.

Link to MIT license

pwa's People

Contributors

hculp avatar

Watchers

 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.