https://github.com/raquellima7/video-upload
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.
https://github.com/raquellima7/video-upload
active-storage bootstrap docker docker-compose postgresql ruby-on-rails
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/raquellima7/video-upload
- Owner: RaquelLima7
- Created: 2022-03-19T21:04:06.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T20:44:13.000Z (almost 4 years ago)
- Last Synced: 2025-03-11T23:46:48.657Z (about 1 year ago)
- Topics: active-storage, bootstrap, docker, docker-compose, postgresql, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 7.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Video upload 🎥🎞
## 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
```
2. Create databases
```
rails db:create
```
3. Run migrations
```
rails db:migrate
```
4. 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:
- [Docker](https://docs.docker.com/engine/install/ubuntu/)
- [Docker Compose](https://docs.docker.com/compose/install/)
1. Building the project
```
docker-compose build
```
2. Start the application
```
docker-compose up
```
3. Create database
```
docker-compose run web rails db:create
```
4. Run migrations
```
docker-compose run web rails db:migrate
```