Welcome to Video Sharing! This project is a web app for sharing YouTube videos.
- Feature 1: User registration and login
- Feature 2: Sharing YouTube videos
- Feature 3: Viewing a list of shared videos
- Feature 4: Real-time notifications for new video shares
Before you begin, ensure you have the following software installed:
- Node.js (version v22.1.0)
- npm (version v10.7.0)
- PostgreSQL (version 14.11)
- Docker (version 26.1.1)
- Ruby (version 3.2.3)
- Rails (version 7.1.3.2)
-
Clone the repository:
git clone https://github.com/nhdong13/videosharing.git cd videosharing
-
Copy
env-example
into.env
in `videosharing-api directory -
At
videosharing
directory, run:docker build -t videosharing -f Dockerfile . docker-compose build
-
Start the server:
docker-compose up
-
Ensure PostgreSQL is running.
-
Create the database:
docker-compose run api rails db:create
-
Run migrations:
docker-compose run api rails db:migrate
- Open your web browser and navigate to:
http://localhost:9000