GithubHelp home page GithubHelp logo

smartnotify's Introduction

smartNotify

A backend API which helps in sending intelligent notifications to the users

The API consists of four files:- 1)cutshortTestForm.html:- A simple webpage used to create notifications, inputs are the notification text and the priority mode(1:- send immediately 2:- schedule immediately )

2)scheduler.js:- A node js service to receive inputs from the cutshortTestForm.html file and verify it with the database to predict the best time to send notification. For now, console.log() has been used to show that it works

3)dispatcher.js:- A nodejs service which scans over the database of notifications clicked and creates two new databases of notifications clicked in the last 24 hrs and the count of notifications clicked per user. It is scheduled to run at midnight everyday.(In the source code, "userCount" collection stores the count of notifications clicked per user and "userAssign1" collection stores the data of all notifications clicked per user in the last 24 hours).

4)open_tracker.js:- A node js service which, when run on a server, will listen for all the notifications clicked and will store it in the database.Input fields:- NotificationID, user_name.Time will be computed by the server and the data will be sent through POST request. This server has been tested by using "Postman" chrome extension.(In the source code, "notifyData" collection stores all the relevant data).

smartnotify's People

Watchers

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