njsfield / FAC-FMC

FAC Find My Calls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FAC-FMC

Join the chat at https://gitter.im/ipcortex/FAC-FMC FAC Find My Calls

Build Status

INSTALLATION

  • Make sure you have PostgreSQL installed and Node 6 onwards.

  • Install the npm modules:

$ npm i

SETUP

  • Create a config.env file in the root with
API_KEY=abcd
JWT_KEY=abcd
PBX_URL=https://hostname.ipcortex.net
POSTGRES_URL=postgres://postgresusername:postgrespassword@hostname/databasename
POSTGRES_URL_TEST=postgres://postgresusername:postgrespassword@hostname/databasename
NODE_TLS_REJECT_UNAUTHORIZED=0
SAVE_AUDIO_PATH=../
  • The API_KEY is to be obtained from IPCortex as your access token.
  • JWT_KEY is a your auth strategy. See these docs for details.
  • PBX_URL is your IP cortex host name address
  • POSTGRES_URL is needed to run queries to the database
  • POSTGRES_URL_TEST is the url of your test database
  • NODE_TLS_REJECT_UNAUTHORIZED=0 Turns off SSL authentication for development purposes.
  • SAVE_AUDIO_PATH needs a trailing slash and is the place where you store all the .wav files.

RUNNING

  • Start your Postgres server

  • Create a database called 'fmc'

  • Connect to your fmc database

  • Run the schema:

$ \i schema/schema.txt
  • Then, in a separate tab, run either:
$ npm start

or if you have nodemon installed

$ npm run startmon 
  • To run the tests, run the following in a separate terminal tab:
npm t

About

FAC Find My Calls


Languages

Language:JavaScript 78.4%Language:HTML 10.7%Language:CSS 8.9%Language:PLpgSQL 2.0%