LightningPI
A simple media streaming app using Node.js, MongoDB and Angular. Upload Music and Movies to your server and stream the content over multiple devices.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
What things you need to install the software and how to install them
Setting up the Node server
- Install the node dependencies by running
npm install
- Open db_url.js file inside utils folder ( path:
utils/db_url.js
) - Configure Mongo DB credentials inside of settings object and run
npm start
const settings = {
user: '',
password: '',
hostname: '<your database ip>',
port: '<your database port>',
db: '<your database name>'
}
Setting up the Angular server
- Install the Angular dependencies by running
npm install
( path: angular-src/LightningPI ) - Open
common-http.service.ts
file and configure the API endpoint and debug variables ( path:angular-src/LightningPI/src/app/services/common-http.service.ts
) - Generate the API key for OmDb API and put it inside secret_key variable
- run
npm start
Open the app in your browser and enjoy !! ( ^ _ ^ )