Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.5 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.5 KB

Prime Studios Contact API

CodeFactor

Overview

A Node.js application that handles contact inquires made on the Prime Studios Contact Page using Express.js and request-promise.

Installation

  1. Install Node.js
     curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
     sudo apt-get install -y nodejs
  2. Clone Repository
    git clone git@github.com:primestudios/contact-api.git
  3. Install Dependencies
    cd contact-api
    npm install

Usage

Configuration

Configuration can be found in the /app_config/ directory:

Application Configuration /app_config/app.json

{
	"interval": 30000 // Enter a valid interval (in milliseconds)
}

Webhook Configuration /app_config/hook.json

{
	"protocol": "https", // HTTP or HTTPS
	"host": "discordapp.com", // Where the Webhook is hosted
	"route": "/api/webhooks/myawesomewebhook" // The Route to the Webhook
}

Running

npm run-script start

License

This project is licensed under the MIT License © 2019-2020 Prime Studios