tuang3142 / underground

yet another interview project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Underground

A website that allows user share youtube video and interact with each other. This is also a toy project I created for learning and testing. I used to create new projects everytime I learn something new which makes my knowledge scatter. With this project, I could see more clearly how things intertwine.

Live demo on Heroku: here

Features

  • User can log in and create a post by sharing youtube video url.
  • User can interact (like) with other posters.

Run locally

Install and update nessessary gems. Install ruby 2.6.3 if needed.

bundle update && bundle install

Set-up database. Install psql if needed. Runtest to make sure everything works fine.

bin/rails db:create
bin/rails db:migrate
bin/rails db:migrate RAILS_ENV=test

Finally, run the project. It is lived on localhost:3000.

bin/rails s

API key

In order for the app to work locally, we need Google API for Youtube and OAuth 2.
After getting the API key, run bundle exec figaro install and add the credential to the newly created file: config/application.yml

About

yet another interview project


Languages

Language:Ruby 80.7%Language:HTML 10.7%Language:Slim 6.2%Language:SCSS 2.3%Language:CSS 0.1%