Code Monkey home page Code Monkey logo

otw's Introduction

OurTeamWork (OTW)

This project helps a group of health care workers to collect data about procedures securely and keep it in sync with a Google spreadsheet.

Prerequisites

Clone this project

Clone this project and cd into its folder.

Create a file functions/otwConfig.json (see the example in that folder) and set the projectOwner and appAdmin email addresses.

Firebase project

Create a new firebase project.

Create a config/firebaseAppConfig.jsfile and set all the Firebase config options (see config/firebaseAppConfig-example.js for the required fields). The Firebase config options can be found in the project console after adding a new web app.

Update functions/otwConfig.json with authDomain and databaseURL from the file above.

Download the project adminsdk service account key and save it to functions/otw-firebase-serviceaccount.json.

In the project's console, create a new service account with 'Reader' role. Take note of the service account email address (a Google spreadsheet shall be shared with this address before adding any data). Create a new key for this account and save it in the file: config/otw-sheets-serviceaccount.json.

Enable the Sheets API in the GCP console page for the newly created project.

Create a Google Spreadsheet with any regular Google account, share it with the above service account email address, allowing this account to edit the spreadsheet.

Sendgrid account

Create a free Sendgrid account and download its API key.

In the project folder add the API key to the functions environment variables:

firebase functions:config:set sendgrid.apikey="your-sendgrid-api-key"

Add appAdmin email address as a verified sender in the Sendgrid control panel (Sender Authentication menu option).

Deploy

firebase deploy

Before first access

From the project root folder, create the first admin user with the command:

node addUser.js

Answer 'y' to Is enabled? and to Is admin?.

Quickstart

Execute yarn storybook to test/check each component.

Build the system with: yarn build

Update firebase.json and change hosting.public to "dist"

Deploy functions with firebase deploy --only functons

Run locally with firebase serve --only hosting

otw's People

Contributors

carlosapgomes avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.