Coder Social home page Coder Social logo

next-cron's Introduction

next-cron

Description

Fulfill a cron job using Express Custom Server with Next.js.

Features

  • timeSignalService
    • Send slack notification once an hour.
  • youtubeService
    • Add new videos of channels registered in a specific playlist at morning.
  • githubGrassService
    • At the end of the day you will be notified of the number of contributions for today.
    • Notifies me of the report once a week.
  • qiitaTrendService
    • Notify qiita articles on a particular topic once every 20 minutes.

Installation

  1. Clone and install
$ git clone https://github.com/itizawa/next-cron.git
$ cd next-cron
$ yarn
  1. Prepare environment variables see below for setting values.

  2. Starting

$ yarn dev

Environment variables

Basic Setting

Variable Description Default Required
WEBHOOK_URL required for slack notification

Time signal service

Variable Description Default Required
ENABLE_TIME_SIGNAL whether to enable time signal service false
CHANNEL_FOR_TIME_SIGNAL notification channel for time signal service #general

Youtube Service

Variable Description Default Required
ENABLE_YOUTUBE whether to enable youtube service false
YOUTUBE_PLAYLIST_ID target playlist to add
CHANNEL_FOR_YOUTUBE notification channel for youtube service #general
YOUTUBE_API_KEY apikey
YOUTUBE_CLIENT_ID client id
YOUTUBE_CLIENT_SECRET client secret
YOUTUBE_REFRESH_TOKEN refresh token

Get each setting value by accessing here https://console.cloud.google.com/

GutHub Grass Service

Variable Description Default Required
ENABLE_GITHUB_GRASS whether to enable github grass service false
CHANNEL_FOR_GITHUB_GRASS notification channel for youtube service #general
GITHUB_USERNAME target users to get data

Qiita Trend Service

Variable Description Default Required
ENABLE_QIITA_TREND whether to enable qiita trend service false
CHANNEL_FOR_QIITA_TREND notification channel for qiita trend service #general
SEARCH_WORD_FOR_QIITA_TREND target word to search data

Anything Else

We are looking for PR of additional functions.

Author

@itizawa

License

MIT

next-cron's People

Contributors

itizawa avatar

Watchers

 avatar

next-cron's Issues

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.