Coder Social home page Coder Social logo

help-a-stranger's Introduction

Help A Stranger

This project started as an inspiration from the success of Home Talkies' Help KFI Workers initiative, leveraging ideas and source code shared by Surya.

We've made several changes to the repository since then, specifically to achieve the following:

  1. Support both UPI and Traditional Bank Account Details.
  2. Change data gathering process such that we minimise risk of fraud by directly working with trusted NGOs.
  3. Add metrics for deriving numbers around success of our efforts, like which beneficiary is shown how often, and how many times do people actually copy details, and an optional prompt to ask how much someone has donated.
  4. Eliminate bugs that could have caused leak of mobile numbers of beneficiaries to the visitors of this site.
  5. Changes that allow us to deploy onto Google Cloud.
  6. Other performance improvements.

We understand it won't be straightforward to take the source code and start using it, but feel free to give us a nudge and we'd be happy to help you set it all up!

Performing a deployment:

This project is deployed to Google Cloud's App Engine with PHP 7.3 Runtime.

Pre-requisites:

  1. In order to deploy the application, ensure that you have JSON key in assets directory with you. This file is excluded from GitHub on purpose, because it includes sensitive backend access to our backend.
  2. You would also have to download and install Google Cloud SDK first. If you are a Homebrew user, you could simply run:
    brew cask install google-cloud-sdk
    
  3. You have logged in with [email protected] email:
    gcloud auth login
    
  4. You have set a helpastranger as your default project as follows:
    gcloud config set project helpastranger
    

Deploying to test environment:

Following command will create a new version for you from your local codebase. Run it from project root directory:

gcloud app deploy --no-promote 

Promoting to production:

In order to promote the same version that you tested, run the following command from project root after replacing version:

gcloud app versions migrate <version>

Cleaning up unused versions:

  1. List existing versions:
    gcloud app versions list
    
  2. Delete versions that aren't serving traffic:
    gcloud app versions delete <version1> <version2> <versionN>
    

help-a-stranger's People

Contributors

coolnirdh avatar lvempati avatar

Watchers

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