{"id":21930608,"url":"https://github.com/daisukitamago/nodejs-video-streaming-mvc","last_synced_at":"2026-04-17T15:04:57.267Z","repository":{"id":125674695,"uuid":"291132888","full_name":"DaisukiTamago/nodejs-video-streaming-mvc","owner":"DaisukiTamago","description":"A MVC Server that can be used as a video streaming service","archived":false,"fork":false,"pushed_at":"2020-08-28T20:24:11.000Z","size":1964,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T12:14:12.432Z","etag":null,"topics":["database","mvc-server","node-streams","video-player"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DaisukiTamago.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-28T19:46:30.000Z","updated_at":"2020-08-31T18:58:00.000Z","dependencies_parsed_at":"2023-04-18T02:42:58.213Z","dependency_job_id":null,"html_url":"https://github.com/DaisukiTamago/nodejs-video-streaming-mvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaisukiTamago%2Fnodejs-video-streaming-mvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaisukiTamago%2Fnodejs-video-streaming-mvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaisukiTamago%2Fnodejs-video-streaming-mvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaisukiTamago%2Fnodejs-video-streaming-mvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaisukiTamago","download_url":"https://codeload.github.com/DaisukiTamago/nodejs-video-streaming-mvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244959452,"owners_count":20538626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","mvc-server","node-streams","video-player"],"created_at":"2024-11-28T23:10:26.534Z","updated_at":"2026-04-17T15:04:57.220Z","avatar_url":"https://github.com/DaisukiTamago.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MVC Node.js video streaming over HTTP protocol\n\n### Overview\nThis project is a MVC server that uses Node.js Streams behind the scenes to dynamically stream video files that can be consumed by any video player through HTTP routes\n\nClient: https://github.com/DaisukiTamago/react-streaming-client\n\n### Features\n1. Automatic file's structure generation\n2. Automatic data fetching from The Movie Database API\n3. Create resources in database with a simple POST method\n\n### Setup\n\nAfter clone the project:  \n`yarn install`: to install the dependencies  \n`yarn start`: get the server running  \n\nBefore run `yarn start` for the first time you must fill the `.env` file with your data:  \n\n    1. `DB_NAME`: your MongoDB database name\n    2. `DB_ATLAS_PASSWORD`:your MongoDB database password\n    3. `DB_ATLAS_USERNAME`: your MongoDB database username\n    4. `TMDBAPIKEY`: the key to acess The Movie Database API, link at the bottom of the document\n    5. `ADRESS`: the adress where your server will run\n    6. `PORT`: the port where your server will run\n    \n### Basic API\n\n`GET /`: returns the webapp that consumes this backend  \n`GET /api/content`: Returns an array with all content in database  \n`GET /api/content/watch/:show_id/:season_number/:episode_number`: Returns a chunk with video data that will be consumed by the video player, commonly it will be used as an src attribute. If the server fails at finding a mp4 file at the path: `/media/show_id/season_number/episode_number.mp4` it will send a file located at `/media/error.mp4` as a fallback  \n`POST /api/content?id=show_id`: Fetch from The Movie Database info about the Tv Show that corresponds to the show_id passed in the url, creates the resource in the database and automatically generates the file struture in the `/media` directory  \n\n\nGet your TheMovieDB Api key: https://developers.themoviedb.org/3/getting-started/introduction  \n*show_id refers to an tv show id that you can get on TheMovieDB website\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisukitamago%2Fnodejs-video-streaming-mvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaisukitamago%2Fnodejs-video-streaming-mvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisukitamago%2Fnodejs-video-streaming-mvc/lists"}