Skip to content

PWA built for Monggo.io to tackle language barriers when traveling to different hotels around the world.

License

Notifications You must be signed in to change notification settings

kkusuma3/Monggo.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monggo IO

Monggo.io tackles language barriers when traveling to different hotels around the world.

Features

This starter project includes official Nuxt.js modules for best PWA project:

It is also enriched with the best Vue's UI framework:

Pre-request

In order to run this project properly, make sure you have:

Setup

# install dependencies
$ yarn

Local Development

To run this project locally, execute this command below

# serve with hot reload at localhost:3000
$ yarn dev

Getting Started

For detailed explanation on how things work, check out the Nuxt.js and Vuetify.js documentation.

Adding Operator

  1. Go to https://localhost:3000/admin
  2. Login using Google Account that want to be added as Operator.
  3. In Login page, there will be a notification saying that, "You're not the admin nor the operator"
  4. After that, login again using Google Account that already has Admin role.
  5. Go to user page.
  6. Change the new account to operator.

Or You can watch this video, Adding Operator - Monggo.IO.

Deployment

Run this one-lined command below to deploy to Firebase Hosting:

$ yarn generate && firebase deploy --only hosting

Running Test

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.

License

MIT License

Copyright (c) Jefry Dewangga (@jefrydco)

About

PWA built for Monggo.io to tackle language barriers when traveling to different hotels around the world.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published