To run this project, you must have three opened terminals in order to start the /react
, /api
and /worker
servers. In development mode, you shoud run the following commands:
# To install all dependencies, just run this command on project's root.
yarn
# For each folder (/react, /api and /worker), run:
yarn dev
Well, the app is really simple. A string generation app! And there were a few concepts that I wanted to talk about when building this project.
Service workers are great and they are present in the web for a long time. It helps the web app by adding a new layer that can deal with cache, intercepting network requests, preloading pages and data, and so on. In this project, the service worker that is served in the /worker
folder helps the app by generating data even when the API is unavailable.
TODO
TODO
TODO
The /har
folder was meant to run analysis on network requests (exported on Chrome). It was crucial to make my undergraduate thesis and you can read it in portuguese here.