Skip to content

pagarme/the-office

Repository files navigation

The Office

[portuguese version]

This project is heavily inspired at Matrix that targets the development of a virtual presence system.

Description

The project has been built targeting remote to comunicate easily with non remote co-workers without the need to setup a meeting room or any conference system.

Goals of the project:

  • Login with Google.
  • Full presence system.
  • Video chat with Jitsi.
  • Secure login by allowing only a couple domains to login.

Technologies

The initial goal of the project was to try out and learn most modern techs and frameworks and avoid at all costs server management. Having this in mind the project has been built using Svelte, Jitsi, Firebase Realtime Database, Firebase Functions e Zeit Now.

Usage

The project is currently hosted at escritorio.pagar.me therefore to proceed to login you'll need a Stone.co valid domain.

Local development

  1. Clone the repo (or fork)
  2. Install the dependencies with docker-compose run install
  3. Start the development server with docker-compose run client
  4. Copy your ip address and setup Firebase
  5. Check which Network address is exposed on the output of the previous command, as below:
  Your application is ready~! 🚀

    - Local:      http://localhost:5000
    - Network:    http://172.23.0.2:5000
  1. Head to the given Network in your browser.

Setting up Firebase

  1. Create a new firebase project at Firebase console.
  2. Add a new Web app to your Firebase project.
  3. Copy the project credentials to src/services/firebase.js
  4. Inside your project, go to Authentication and then to Configure login method, and turn on Google auth.
  5. Copy the project public name and paste it on src/services/firebase.js on the key projectId.
  6. Go to Database and create a new one
  7. After created select the Realtime Database option and set up your write and read rules which can be found at database.rules.json.

and now we are done :)

Contributors


@allangrds

@jeanaugustoos

@thor99

@MatheusVellone

@devdrops

@miglsoares

Author


@lucianopf