Notes sharing between devices or users without login
- Vue.js 2.0
- Vuelidate
- Vuetify
- Vuex
- vue-sweetalert2
- Material Icons
- Firebase
-
Install depedencies using
npm
oryarn
npm install
or
yarn install
-
Create Firebase account on https://firebase.google.com.
-
Create a new Firebase project. Be aware that Project Id cannot be modified once selected, and it will be used for hosting your app (e.g. https://<project_id>.firebaseapp.com)
-
Select project, click on Authentication, then SET UP SIGN-IN METHOD, enable provider Anonymous
-
In the local project folder, make a copy of
config/app.env.js.example
and name itconfig/app.env.js
. Replace all FIREBASE related settings inconfig/app.env.js
with settings from Firebase WEB SETUP. Be careful to leave the double quotes intact. -
Set up Firebase database. Under RULES enter security rules to prevent unauthorized access. Samples:
{ "rules": { "notes": { ".read": "auth != null", ".indexOn": ["code"], "$notesId": { ".read": "auth != null", ".write": "auth != null", "code": { ".validate": "newData.val().length >= 3 && newData.val().length <= 30" } } } } }
-
Serve with hot reload at localhost:8080
npm run dev
or
yarn run dev