This is a template PWA - Progresive Web Application that uses ReactJs and Material UI.
App works offline by saving responses in localStorage.
Currently I've done the development in a subfolder ('/pwa/'). To run in the root folder just remove the ("homepage": "/pwa/",) in the package.json file. (Also remove the "set HOST=intranet&& " from scripts->start property in package.json)
Store is now managed by React-Redux.
Store is managed using React's Context API.
Switch to "react-context" branch to see the React-Contex version
(Posts are being retrieved from a wordpress site using the WordPress REST API)
Steps to install and start playing with the project:
- git clone https://github.com/edisonneza/react-blog.git
- npm i
- npm run start
To generate build files (by removing the source map files)
- npm run winBuild
or (if LINUX)
- npm run build
See GIFs below on desktop and mobile devices: