Coder Social home page Coder Social logo

fan_certification_firebase's Introduction

fan_certification_firebase

firebase functions and hosting for fan_certification

0. testing on local by running emulator

Run local emulator
Call function in kotlin

1-1. functions

  • addHeart

    • input: platform(String, default value: "0"), account(String, ChannelID for YouTube)
    • function: increases the like by 1 when 5 minutes or more pass from the 'recent' using the 'recent' inside the 'celeb', or outputs an error to try again after a while
  • manageFollow

    • input: platform(String, default value: "0"), account(String, ChannelID for YouTube), method(String, "add", "update" or "delete"), title(String?, channel name), profileURL(String?, thumbnail url)
    • function:
      1. add
        adds celebrities to 'celeb' in my account. length of 'celeb' cannot be more than three and values of 'celeb' cannot be duplicated.

      2. update
        updates title and url of celeb if celeb changes name or profile photo.

      3. delete (doesn't need title and url)
        deletes celebrities in 'celeb' in user's account and decrease related celeb's follow and likes

  • initUser

    • input: None
    • function: sets default values such as "celeb: []" if user is not in "Users" collection
  • deleteAccount

    • input: None
    • function: deletes user's account in the "Users" collection and initializes all user have followed and clicked likes

1-2. output structure of functions

  • case success
    • {status: 200, message: "success"}
  • case error
    • {status: 400, message: "{message of error}"}

2. hosting (Getting ready..., page to introduce our apps)

fan_certification_firebase's People

Contributors

ground17 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.