Skip to content

This single-page application is a text-editor that follows PWA criteria and allows a user to reliably write and save notes.

License

Notifications You must be signed in to change notification settings

dymoy/pwa-text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Just Another Text Editor PWA

License

Description

This single-page application is a text-editor that follows PWA criteria and allows a user to reliably write and save notes.

PWAs, or Progressive Web Applications, are programs that use web technologies to build fast and flexible web applications so that they perform like a native app.

This application utilizes the IndexedDB database for retrieving and storing data so that any written note is automatically saved and persists when the window is refreshed or reopened. This tool also implements a number of Workbox features and plugins including InjectManifest to inject a custom service worker for allowing offline functionality, and caching methods for storing and serving static assets.

Table of Contents

Installation

There is no installation necessary for this application as it is deployed using Render. You can access and use the application here or at the following link: https://pwa-text-editor-xj19.onrender.com/

If you are interested in running the application locally, please use the following steps:

  1. Clone this repository to your local machine. (For reference, visit the Cloning a Repository GitHub Docs article.)
  2. Run npm install && npm run build in your CLI to download the npm package dependencies.
  3. Run npm run start to start up the backend and serve the client.
  4. Navigate to http://localhost:3000 on your local web browser to use the application.

Dependencies

This project requires the following npm package dependencies, which are included in client/package.json:

Image of package dependencies

Usage

Getting Started

Upon accessing the text editor, IndexedDB will immediately create a database storage and the user will be presented with the main page, depicted below.

Image of Main Page

When navigating to Chrome DevTools, you'll see the app details for the registered service worker, manfifest file, and pre-cached static assets.

Image of registered service worker Image of manifest file Image of pre-cached static assets

Updating Content

After writing some content and clicking off of the DOM window, the new content is updated in the database storage. You will find that the content data persists after closing and reopening the application by re-rendering the value saved in IndexedDB.

Image of updated content Image of updated IndexedDB value

Installing a Desktop Shortcut

As a PWA, this text editor supports installation so that it can be saved to your local desktop. By pressing the Install button, J.A.T.E. will be downloaded as a Chrome App and can be accessed directly as a desktop shortcut.

Image highlighting the install button Image of J.A.T.E. installed to desktop

Contributing

To make contributions to this project:

  1. Fork the repository
  2. Make some commits to improve the application
  3. Open a Pull Request on GitHub
  4. From there, we can discuss your changes and merge the pull request once your contributions have been approved!

License

This GitHub repository is licensed under the MIT license. Please refer to the license documentation here.

Questions

This project was developed by dymoy.
For any related questions, please contact me via email at [email protected].

About

This single-page application is a text-editor that follows PWA criteria and allows a user to reliably write and save notes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published