Skip to content

itssomething/video-sharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Video Share

Using local setup (not Docker)

Install dependencies

  1. Ruby

Make sure you have a Ruby version manager installed, could be rbenv, rvm, asdf. I prefer asdf because of easier installation. Install Ruby 3.0.6 using your current Ruby version manager

  1. Postgresql

If you are using Ubuntu (and you should be), you can follow this link to install Postgresql

  1. Redis (optional)

Follow this guide to install Redis to your local. ActionCable in local env does not need Redis, but it's still nice to have

Start server

Prerequisites

  • Switch to correct Ruby version, we are currently using Ruby 3.0.6
  • Copy content from .env.example file to .env file and replace with your values. You can ignore BOOTSTRAP.
  • For YOUTUBE_API_KEY, if you have one, please use it. If you do not, you can follow this guide to get one. If you also do not want to do that, you can follow this form to use my key

Commands

bundle install
rails db:create
rails db:migrate
rails s

Using Docker

If you have a strong computer and want to use Docker, good for you

Steps:

  • You should have Docker and Docker Compose installed, if not, why are you here?
  • Copy content from .env.example file to .env
  • For YOUTUBE_API_KEY, if you have one, please use it. If you do not, you can follow this guide to get one. If you also do not want to do that, you can follow this form to use my key
  • Set BOOTSTRAP to true if it is your first run, if not, set it to false
  • docker compose build
  • docker compose up