Giter Club home page Giter Club logo

ptt-alertor's Introduction

Ptt-Alertor

Build Status codecov Go Report Card Code Climate StackShare License

API

Board

  • GET /boards

  • GET /boards/[board name]/articles

  • GET /boards/[board name]/articles/[article code]

Keyword

  • GET /keyword/boards

Author

  • GET /author/boards

PushSum

  • GET /pushsum/boards

Articles

  • GET /articles

User (Auth)

  • GET /users

  • GET /users/[account]

  • POST /users

{
    "profile":{
        "account": "sample",
        "email":"[email protected]"
    },
    "subscribes":[
        {
            "board":"gossiping",
            "keywords":["問卦","爆卦","公告"]
        },
        {
            "board":"lol",
            "keywords":["閒聊"]
        }
    ]
}
  • PUT /users/[account]
{
    "profile":{
        "account": "sample",
        "email":"[email protected]"
    },
    "subscribes":[]
}

Credits

Real Life

Rose Li, Aries Huang, Scott Kao, Amy Li

Ptt

DMM, oas, bestpika, Zero0910, lucky0509, wbreeze, chang0206, lindo0130, hungys, gyman7788, tooilxui, myamyakoko, whkuo, papago89, timeline, Kamikiri

Facebook

Mr.clu, Woqeker

ptt-alertor's People

Contributors

dinos80152 avatar liam-lai avatar scottxxx666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ptt-alertor's Issues

Docker: Docker daemon didn't run

laiyichengdeMacBook-Pro:ptt-alertor icbruce$ docker stats
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

docker cronjob

Issue: cronjob error message:

ls
-rw-r--r-- 1 root root      2 Feb 20 04:03 cron.log

root@6bb90a1bb415:/var/log# tail -f cron.log
tail: unrecognized file system type 0x794c7630 for 'cron.log'. please report this to [email protected]. reverting to polling

Build Tool: Docker

Credit the authorship of icon

<div>Icons made by <a href="http://www.flaticon.com/authors/madebyoliver" title="Madebyoliver">Madebyoliver</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>

Publish Messenger Bot

  • Set a Get Started Button
  • Set a Greeting Text
  • Persistent Menu
  • Personalize your conversations
  • Use Structured messages, buttons and carousels
  • Build a way for people to manage the frequency or turn off notifications / alerts you send to them
  • Manage failure states throughout your experience
  • Look through the available entry points on Messenger Platform and pick ones that will get your bot in front of your target users.
  • Configure your email notifications to receive important updates about your app. You should select "All notifications, except the ones you unsubscribe from".
  • Review the Messenger Platform Guidelines

Launch Your Bot

Docker did't run

laiyichengdeMacBook-Pro:1.8 icbruce$ docker run --name go3 -d -p 8080:8080 icbruce
ca4d4202d374e011546a54a63d59296ed8a76d1dddf9302e81fbf5f37a962047

laiyichengdeMacBook-Pro:1.8 icbruce$ docker exec -it go3 bash
Error response from daemon: Container ca4d4202d374e011546a54a63d59296ed8a76d1dddf9302e81fbf5f37a962047 is not running

Subscribe Verification Mail

Flow

  1. User submit email and boards
  2. Save information in Database temporarily, default 1 hour
  3. Send an email include verify URL with md5 URI (ex: pttalertor.io/verify/1234bcdue67hukd)
  4. User click URL
  5. System check URL, and save information permanently

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.