Skip to content

luongvietdung/video_sharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tab contents:

  1. App Home
  2. Features
  3. Local Development
  4. Docker Development
  5. How to run test
  6. Backend API

Features:

  1. Sign in/ Sign up
  2. List videos sharing
  3. Sharing a video
  4. Notify a new video sharing
  5. Like/Unlike a video

Local Development:

  1. Prerequisites
  2. Scripts

Prerequisites:

  1. Ruby >= 3.3.0
  2. Rails >= 7.1.3.2
  3. Node >= 20
  4. NextJS >= 14
  5. Postgresql >= 14.7

Scripts:

# Setting up database:
bin/setup

# Up and running:
bin/rails s -b 0.0.0.0

# NEXT app
npm install && PORT=9000 npm run dev

Docker Development:

  1. Prerequisites
  2. Scripts

Prerequisites:

  1. Docker
  2. Docker Compose

Scripts:

# Up and running:
docker compose up

How to run test:

With local machine:

# Run unit test
bundle exec rspec

With docker:

# Run unit test
docker compose run backend bundle exec rspec

User document:

Brief:

  • You can switch between Sign In or Sign Up pages
  • You can sign up without confirm your email address

Further improvement - future features:

  1. Paginate - Infinity scroll
  2. Like/Unlike
  3. User's sharing videos

Backend API

  • BASE_URL: https://video-sharing-sqba.onrender.com
  • API lists:
    • Signin: POST /signin
    • Signup: POST /signup
    • Signout: DELETE /signout
    • Share Video: POST /videos
    • List Videos: GET /videos
    • Vote a video: POST /videos/{video_id}/vote
    • Get Current user: GET /current_user

About

This is simple sharing video website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages