A pwd Shopping List synced between clients, fully offline support.
OTHER License
A shopping list PWA synced between clients.
console.log
supplied by CRA template)yarn
env.sample
to .env.local
and update its content with the details received from firebase.{
"rules": {
".read": "auth.token.email == '[email protected]' ||
auth.token.email == '[email protected]'",
".write": "auth.token.email == '[email protected]' ||
auth.token.email == '[email protected]'",
}
}
In order to let the server (the code will published soon) to send a push notification, the app should register itself to FCM ("Firebase Cloud Messaging"), get a token and submit it to server. In order to do this:
REACT_APP_NOTIFICATION_TOKEN
to env.local
/ server env variable.In the process you'll set the build variables the same as in the .env
file.
Notes:
yarn push
triggers also npm version
which bumps the app's version which reflected in the UI (main nav at the bottom)yarn start
netlify functions:serve
The proxy function aims to solve the CORS issue when trying to save an image from Google search result (Item Details > Image > Replace (Google)).