saanny / hookscaller-back-end

An application which can call the scheduled apis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HookCaller Application(Back-end)

An application which can call the scheduled apis.

Installation

Install HookCaller with yarn

  yarn install 
  yarn docker:up
  yarn dev

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

NODE_ENV development or production

PORT for running api, In .env.example 8000

POSTGRES_DATABASE database name default is mangroves_dev

POSTGRES_HOST default is localhost

POSTGRES_PORT default is 5432

POSTGRES_PASSWORD default is admin

POSTGRES_USERNAME default is postgres

API Reference

Create item

  POST /api/v1/hooks-caller
Parameter Type Description
hours number Required. hours for create item also it can be 0
minutes number Required. minutes for create item also it can be 0
seconds number Required. seconds for create item also it can be 0
webhookUrl string Required. webhookUrl it must be link

Get all items

  GET /api/v1/hooks-caller

Get item

  GET /api/v1/hooks-caller/${id}
Parameter Type Description
id string Required. Id of item to fetch

Tech Stack

Node, Express, sequelize, pg, inversify, node-cron

About

An application which can call the scheduled apis.


Languages

Language:TypeScript 95.0%Language:Shell 5.0%