Skip to content

The back-end code for the website 'Teatime music' that streaming audio from youtube videos

Notifications You must be signed in to change notification settings

Dalanke/youtube_audio_API

Repository files navigation

Teatime_Music_API

image This is the API code for the website project Teatime music

TeaTime music is a website that helps you get audio from youtube videos. Like any music stream service, you can search music, stream your favorite songs and create playlists for your favorites.

Visit live application on heroku:
https://stayhome-ui.herokuapp.com/music

For Front-end code, visit:
https://github.com/Dalanke/youtube_audio_UI

Want to build your own React music player? Check the player component I used in this project:
https://github.com/Dalanke/react_audio_player

Contribution

Dalanke
kakatcy

User guide for website

A brief introduction of website feature:
User guide

Usage

Environment variable setting

Creat .env file and sets a variable per line for local testing:

# cloud MongoDB url
DB_URL=<your mongoDB url>
# ReCAPTCHA 2.0
RECAPTCHA_KEY=<your ReCAPCHA key>
# port default to 777
PORT=<assigned api server port>

Run in localhost

  • Clone API repo and install dependency, configure .env file:
    npm install
    npm start
    
  • Clone UI repo and install dependency, configure .env file
    npm install
    
    # comment out if test in localhost
    REACT_APP_API_ENDPOINT=https://stayhome-api.herokuapp.com/graphql
    
    npm start
    

The streaming service might not be reliable due to the restriction of heroku, we recommend test on localhost to get better experience.

GraphQL API

Check GraphQL.md for API example and details

About

The back-end code for the website 'Teatime music' that streaming audio from youtube videos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published