Skip to content

oliverLo78/pwa-text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwa-text-editor

License Shield LinkedIn Shield

You will deploy this full-stack application to Heroku using the Heroku Deployment Guide on The Full-Stack Blog.

Description

The app will be a single-page application that meets the PWA criteria. Additionally, it will feature a number of data persistence techniques that serve as redundancy in case one of the options is not supported by the browser. The application will also function offline.

To build this text editor, you will start with an existing application and implement methods for getting and storing data to an IndexedDB database. You will use a package called idb, which is a lightweight wrapper around the IndexedDB API. It features a number of methods that are useful for storing and retrieving data, and is used by companies like Google and Mozilla.

User Story

AS A developer I WANT to create notes or code snippets with or without an internet connection SO THAT I can reliably retrieve them for later use

Acceptance Criteria

GIVEN a text editor web application WHEN I open my application in my editor THEN I should see a client server folder structure WHEN I run npm run start from the root directory THEN I find that my application should start up the backend and serve the client WHEN I run the text editor application from my terminal THEN I find that my JavaScript files have been bundled using webpack WHEN I run my webpack plugins THEN I find that I have a generated HTML file, service worker, and a manifest file WHEN I use next-gen JavaScript in my application THEN I find that the text editor still functions in the browser without errors WHEN I open the text editor THEN I find that IndexedDB has immediately created a database storage WHEN I enter content and subsequently click off of the DOM window THEN I find that the content in the text editor has been saved with IndexedDB WHEN I reopen the text editor after closing it THEN I find that the content in the text editor has been retrieved from our IndexedDB WHEN I click on the Install button THEN I download my web application as an icon on my desktop WHEN I load my web application THEN I should have a registered service worker using workbox WHEN I register a service worker THEN I should have my static assets pre cached upon loading along with subsequent pages and static assets WHEN I deploy to Heroku THEN I should have proper build scripts for a webpack application While building this project I learned to:

(back to top)

Built With

Babel Shield Express Shield Webpack Shield JavaScript Shield

Table of Contents

Installation

Text Editor deployed application pacific-forest-88818.herokuapp.com

Screenshot

Screenshot_20221202_043158

Screenshot_20221202_043104

Screenshot_20221202_042958

(back to top)

Website

As a user you may add notes to the application. It will save your notes to a database so you may leave the page and have the notes stay.

Should you wish to have access to the text editor on your local device merely hitthe Install button at the top left of the screen. All of your notes will carry over.

Developer

From your terminal, run npm run start:dev in order to generate a dist folder. You will see that within the dist we have a condensed Progressive Web Application.

In order to see the application at work navigate to localhost:3000/ .

(back to top)

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

For any further questions feel free to contact me via:

(back to top)

About

a text editor app that follows progressive web applications techniques and persistence data storage in case is not supported by the browser. The application will work offline.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors