Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

SteveyPugs/LS_Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Stream API Notes

An API to store/update/list director information from LiveStream's API

What is a director?

A Director is any account Live Stream's API. It consists of:

  • Directors Full Name
  • Directors Date of Birth
  • Directors Favorite Camera (Optional)
  • Directors Favorite Movies (Optional)

Installation

Clone the latest:

git clone [email protected]:SteveyPugs/LS_Demo.git
cd LS_Demo

Install the application's dependencies:

npm install .

Setup configuration files:

cp ./config/database.example.js ./config/database.js
cp ./config/database.example.js ./config/database.test.js
cp ./config/config.example.js ./config/config.js

Set up the database connection config in ./config/database.js. Make sure the credentials are correct as to avoid crashing. The database needs to be created in advance

exports.config = {
  type: 'mysql',
  hostname: 'localhost',
  port: 3306,
  db: 'mydbname',
  user: 'dbuser',
  password: 'dbpass'
};

Set up the test database connection config in ./config/database.test.js. Make sure the credentials are correct as to avoid crashing. The database needs to be created in advance

exports.config = {
  type: 'mysql',
  hostname: 'localhost',
  port: 3306,
  db: 'mydbname_test',
  user: 'dbuser',
  password: 'dbpass'
};

Set up the HTTP server config in ./config/config.js. The following is customizable:

exports.config = {
  hostname: 'localhost',
  port: 8000,
  tls: false
};

Run with node .!

LiveStream API Reference

See Live Stream API reference

How to run tests

make test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published