Notifie Server

Notifie Server is a learning list notifier. E.g; If you want to learn English, you will build the app on heroku or others. After installing Notifier Client on your computer. The client application will be notified to the computer at your desired time interval.

You should set confg file for your selection. Let’s continue with the guide.

Connection

Host:

https://xxx.herokuapp.com/

Router:

  • [GET, POST] /in-memory | https://xxx.herokuapp.com/notify

Install

create config.json file via config_sample.json

{
  "database": {
    "mongo_url": "mongodb+srv://username:<password>>@cluster0.ffkdj.mongodb.net/test",
    "mongo_db_name": "notifie",
    "mongo_collection": "notifie"
  },
  "context": {
    "timeout": 3
  },
  "server": {
    "port": ":1923"
  }
}

Docker install

$ docker build -t notifie .
$ docker run -d -p 1923:1923 notifie

Heroku

Heroku Deploy

heroku login
heroku create
git push heroku master
heroku open

View logs

heroku logs --tail

Heroku set config.json



Services

Get Random Notify

URL : /notify

Method : GET

Responses

Success Response

Code : 200

Response Body

{
  "title": "Tired",
  "content": "I'm too tired to come to the park with you."
}

GitHub

View Github