Skip to content

Project in Rails that allows the user to add videos and thumbnails. Videos must be mp4 or mov and have a maximum of 200MB. When uploading a video, you must enter a category for it: exercise, education or recipe. The system generates three files (64x64, 128x128, 256x256) for each thumbnail. The project's home contains all the videos with the thum…

Notifications You must be signed in to change notification settings

RaquelLima7/video-upload

Repository files navigation

Video upload 🎥🎞

Ruby Version

Project

Project in Rails that allows the user to add videos and thumbnails. Videos must be mp4 or mov and have a maximum of 200MB. When uploading a video, you must enter a category for it: exercise, education or recipe. The system generates three files (64x64, 128x128, 256x256) for each thumbnail. The project's home contains all the videos with the thumbnail, when you hover over the video, its name appears, and when you click the video starts. When no thumbnail is added, the system generates a preview of the video.

Screenshot

When no thumbnail is added, the system generates a preview of the video.

Stack the Project

  • Ruby on Rails
  • Bootstrap
  • Postgresql
  • Docker

Building application

First you must have:

  1. Postgres installed.

  2. Ruby >= 2.7.3 installed.

As soon as you have everything done you can follow

1. Building everything

If you want to rock and create your dev environment and data, it's possible to go through the usual way:

  1. And to bundle it with command:
bundle install
  1. Create databases
rails db:create
  1. Run migrations
rails db:migrate
  1. Install imagemagick and ffmpeg
# Linux
sudo apt update
sudo apt install ffmpeg

#macOS
brew install ffmpeg

2. Building everything with docker

If you want to use Docker to create your development and data environment, you can follow the path below.

Necessary documentation:

  1. Building the project
docker-compose build
  1. Start the application
docker-compose up
  1. Create database
docker-compose run web rails db:create
  1. Run migrations
docker-compose run web rails db:migrate

About

Project in Rails that allows the user to add videos and thumbnails. Videos must be mp4 or mov and have a maximum of 200MB. When uploading a video, you must enter a category for it: exercise, education or recipe. The system generates three files (64x64, 128x128, 256x256) for each thumbnail. The project's home contains all the videos with the thum…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published