Skip to content

📞 The API powering the Prime Studios' Contact Page.

License

Notifications You must be signed in to change notification settings

PrimeStudios/Contact-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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