Monggo.io tackles language barriers when traveling to different hotels around the world.
This starter project includes official Nuxt.js modules for best PWA project:
It is also enriched with the best Vue's UI framework:
In order to run this project properly, make sure you have:
- Node.js v10.16.3 or above
- Yarn v1.17.3 or above
- Firebase CLI v7.3.2 or above
# install dependencies
$ yarn
To run this project locally, execute this command below
# serve with hot reload at localhost:3000
$ yarn dev
For detailed explanation on how things work, check out the Nuxt.js and Vuetify.js documentation.
- Go to https://localhost:3000/admin
- Login using Google Account that want to be added as Operator.
- In Login page, there will be a notification saying that, "You're not the admin nor the operator"
- After that, login again using Google Account that already has
Admin
role. - Go to user page.
- Change the new account to operator.
Or You can watch this video, Adding Operator - Monggo.IO.
Run this one-lined command below to deploy to Firebase Hosting:
$ yarn generate && firebase deploy --only hosting
To run the test, set Firestore Rule from this:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read;
allow write: if request.auth != null;
}
}
}
to this:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write;
}
}
}
And the Storage Rule from this:
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}
to this:
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write;
}
}
}
Both of them allow client side to run the test without any of permissions.
After that, open store/user.js
file and read the direction start from line 10. Then open layouts/admin.vue
and read the direction start from line 233.
To run the test, execute this command below:
$ yarn test:e2e
Make sure to run this project on local development first.
Copyright (c) Jefry Dewangga (@jefrydco)