A simple anoymous chat app that shows how you can create offline apps with React and RxDB, using a local IndexedDB database.
This project was bootstrapped with Create React App.
- Node version 6 or superior. You can use nvm to switch between Node versions.
- A modern browser that supports IndexedDB.
- Clone this repo and
cd
into it. - Execute
npm install
to download depencencies. - Execute
npm start
to start the dev version of the app and test the local database functionality RxDB provides. - To test the offiline functionality provided by
create-react-app
, you should take into account some considerations, but basically, executenpm run build
to build a production build of the app and then executenpm run offline
, go tohttp://localhost:3000
(in incognito mode if possible, since this will install a service worker and its manifest) and go offline to test it. - Also, you can go to
http://localhost:5984/_utils/
to open the database web interface.
MIT