- 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
- Postgresql
If you are using Ubuntu (and you should be), you can follow this link to install Postgresql
- 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
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 ignoreBOOTSTRAP
. - 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
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
totrue
if it is your first run, if not, set it tofalse
docker compose build
docker compose up