Giter Site home page Giter Site logo

nodejs-video-gallery's Introduction

Description

Basic video gallery backend using Nest framework.

Features

This gallery allows the user to upload video files that will be stored locally. The system will generate a thumbnail for every uploaded video using Fluent-FFMPEG

APIs

GET /gallery

{
  "videos": [
    {
      "id": "6d5679cc-fd85-4cbf-a649-d95869d8e39b",
      "name": "first gallery video",
      "description": "this is the first video in this gallery!",
      "videoFilename": "gallery/video/6d5679cc-fd85-4cbf-a649-d95869d8e39b",
      "thumbnailFilename": "gallery/thumbnail/6d5679cc-fd85-4cbf-a649-d95869d8e39b",
      "uploadDate": "2021-10-16T22:41:00.788Z"
    }
  ]
}

POST /gallery

{
  "name": "give your video a name",
  "description": "give your video a description",
  "file": <video file upload>,
}

Will return the saved video id

{
  "id": "6d5679cc-fd85-4cbf-a649-d95869d8e39b"
}

GET /gallery/video/{id} will return the video file

GET /gallery/thumbnail/{id} will return the video thumbnail

Requirements

In order for the image processing to work, FFMPEG must be install on your system.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Credits

The gallery comes preloaded with a single video by Ruvim Miksanskiy

nodejs-video-gallery's People

Contributors

tomperi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.