https://github.com/leoelicos/txtly
Offline text editor
https://github.com/leoelicos/txtly
idb pwa webpack
Last synced: 2 months ago
JSON representation
Offline text editor
- Host: GitHub
- URL: https://github.com/leoelicos/txtly
- Owner: leoelicos
- Created: 2022-07-01T06:35:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-18T11:50:36.000Z (about 3 years ago)
- Last Synced: 2025-03-22T11:48:27.512Z (about 1 year ago)
- Topics: idb, pwa, webpack
- Language: JavaScript
- Homepage: https://txtly.herokuapp.com/
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# txtly
   
       
## Introduction
This progressive web app allows users to edit a text file using CodeMirror, which prettifies code such as Javascript. The app allows data to persist whether the user is online or offline, and implements an assets cache to store data.
This Node application uses npm packages `idb` and `code-mirror-themes`.
I made this app in order to learn how to implement an IndexedDB to store persistent data, and also to learn how to make a progressive web app that implements caching strategies like Cache-First using service workers.
## Usage
- The app is deployed at https://txtly.herokuapp.com/
- The repo is at https://github.com/leoelicos/txtly
## Development and Testing
### 0. Download Node
| Programs | Download links |
| -------- | ------------------------------- |
| `Node` | https://nodejs.org/en/download/ |
### 1. Git clone and go inside
```sh
git clone https://github.com/leoelicos/txtly.git
cd txtly
```
### 2. Install dependencies
```sh
npm install
cd server && npm install
cd ..
```
## Usage
1. Start the server: `npm start`
2. Access the app by going to http://localhost:3000
## Video Demo
https://user-images.githubusercontent.com/99461390/176977890-28eec4aa-222b-4319-aae7-37f28dc6d862.mp4
Video is also available on [YouTube](https://www.youtube.com/watch?v=nz5ANwI0pWI)
## Screenshots
### The application's `manifest.json` file:

### The application's registered service worker:

### The application's IndexedDB storage:

## Credits
- BCS Resources
## License
© Leo Wong
Licensed under the [MIT License](./LICENSE).
```
```