Giter Site home page Giter Site logo

uytube-1's Introduction

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.

uytube-1's People

Contributors

julian-george avatar ospreyelm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.