Giter VIP home page Giter VIP logo

memmo_back's Introduction

Memmo

Actions Status

About

For the #twiliohackathon we are building a mobile application called Memmo to generate alerts in case any user has been too close to a person who now has covid-19. More info

How it works

We will collect the geolocation of each user (4am - 10pm). When new cases of COVID-19 are reported we will search for each new patient on our platform. If we find one, we will notify other users who have been within 2 meters of the patient in the last 14 days.

Features

Set up

Requirements

Twilio Account Settings

Before we begin, we need to collect all the config values we need to run the application:

Config Value Description
Account Sid Your primary Twilio account identifier - find this in the Console.
Auth Token Used to authenticate - just like the above, you'll find this here.
Phone number A Twilio phone number in E.164 format - you can get one here

Local development

After the above requirements have been met:

  1. Clone this repository and cd into it
git clone https://github.com/sjdonado/memmo_back.git
cd memmo_back
  1. Set your environment variables

Rename docker-compose.yml.example as docker-compose.yml Open docker-compose.yml and fill the next fields

  • TWILIO_ACCOUNT_SID
  • TWILIO_AUTH_TOKEN
  • TWILIO_SERVICE_VERIFY_SID
  • TWILIO_SERVICE_NOTIFICATION_SID
  • TWILIO_SERVICE_NOTIFICATION_SID
  • TWILIO_PHONE_NUMBER

See Twilio Account Settings to locate the necessary environment variables.

Finally, create a firebase project and a service account More info, download the JSON key and follow the next steps:

  • Fill each one FIREBASE field at docker-compose.yml with the service_account.json variables
  1. Run the application
docker-compose up

Alternatively, you can use this command to start the server in development mode. It will reload whenever you change any files.

docker-compose up
  1. Navigate to http://localhost:3000

That's it!

Tests

You can run the tests locally by typing:

docker-compose run --rm api npm test

Cloud deployment

Additionally to trying out this application locally, you can deploy it to Heroku.

Please be aware that some Heroku addons might charge you for the usage.

Contributing

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for Contributing.

All contributions are subject to our Code of Conduct.

License

MIT

memmo_back's People

Contributors

sjdonado avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar  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.