A music video display application which periodically updated the videos from the YouTube Data API.
This repo is just a workflow with docker-compose.yml to run the Music Tube server with a database connection.
- Official image for MongoDB: mongo
- Music Tube server: jaypsy/music-tube-server
Source: j-tesla/music-tube-server
For exact dependencies used frontend and backend, checkout frontend's package.json and backend's package.json
Git, Docker, Docker Compose, Google Account
- Create a project in the Google Developers Console and obtain authorization credentials so your application can submit API requests.
- After creating your project, make sure the YouTube Data API is one of the services that your application is registered to use:
- Go to the API Console and select the project that you just registered.
- Visit the Enabled APIs page. In the list of APIs, make sure the status is ON for the YouTube Data API v3.
-
Clone this repo (How?)
-
Change director into the root of the repo
-
Create
.env
file with required environment variables-
Copy example.env
cp example.env .env
-
Fill .env with environmental variables to be used. (
YOUTUBE_API_KEY
should the API key previously obtained)
-
-
Run:
docker-compose up
To run in detached mode:
docker-compose up -d
-
Dashboard is avaialble at root url
-
API endpoint for videos at
/api/videos
-
To know the port at which the servert is running,
-
Run
docker ps
-
Look for Image named
music-tube_app
.
If PORTS field of
music-tube_app
image is soemthing like0.0.0.0:80->8080/tcp, :::80->8080/tcp
Then you can access the server at http://0.0.0.0:80/ -