Skip to content

App made to save music data with youtube videos: backend made by me

Notifications You must be signed in to change notification settings

ospreyelm/uytube-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is an app that allows users to create annotations to YouTube videos, and save them for others to view. This is intended to be used in a musical context, but it can possibly be used in many ways. The frontend of this was completed before me, in this repo, so I hooked it up to a nodejs backend and a MongoDB database to allow storing and sharing annotations remotely.

View the app here

File Structure

  • backend - contains the backend files to serve html and save annotations
    • index.js - handles all get/post requests and serves static html
    • Music.js - contains MongoDB model for Music, or how we store the annotations
  • frontend - contains the static frontend files that are served
    • index.html - the webpage and much of the scripting
    • index.js - the additional scripting I (Julian George) added to connect to backend

Local Deployment

To fully deploy Uytube locally, the following steps is how you do it. If you need to just edit the front end, skip steps 3-5.

  1. git clone this repo locally to download it
  2. Run npm i on the command line within this folder to install all needed packages
  3. Install mongodb and initialize a database. Good instructions here
  4. Create a .env file with the following in it:
    • PORT=3000
    • MONGOURL=(insert your db url here)
      • Should be mongodb://localhost:27017 if the DB is local
      • Contact me if you need the url to the app's main database for any reason, since that's what's here in production
  5. In frontend/index.js, change the backendUrl variable to include the port (the same as in the .env, which is 3000 by default)
  6. Run npm start or npm run-script start on the command line to initialize the app. Run it every time you edit the backend.
  7. Visit localhost:3000 in your browser to view it!
  8. If you have permissions, git push when you're finished editing to push changes to the main app.

About

App made to save music data with youtube videos: backend made by me

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 86.1%
  • JavaScript 13.9%