This project is an improved way of sharing noteworthy moments from Youtube videos.
-
This project uses YouTube's Iframe Player and Data API.
-
This project uses Twitter's API to login.
-
This project uses Facebook's API to login.
Clone the repo from github
git clone https://github.com/mosesfinlay/vidnote-2.0.git
Move into the project directory
cd vidnote-2.0
Install main project dependencies
npm install
Install frontend dependencies
npm run install-client
Create a .env file
touch .env
Inside the .env file
SESSION_SECRET=Replace-This
REACT_APP_YOUTUBE_API_KEY=Replace-This
TWITTER_CONSUMER_KEY=Replace-This
TWITTER_CONSUMER_SECRET=Replace-This
FACEBOOK_APP_ID=Replace-This
FACEBOOK_APP_SECRET=Replace-This
Before running the app be sure start MongoDB
mongod
Start the app
npm start
To view the app: Running npm start
will run the project on port:5000
and build the frontend of the app. After the React build process has completed visit port 5000
in your browser.
Note: When using the login feature with Twitter be sure that the URL is 127.0.0.1:5000 and not localhost:5000.
When using the login feature with Facebook be sure that the URL is localhost:5000 and not 127.0.0.1:5000
Start MongoDB in a new terminal tab
mongod
Run the test script
npm test
Visit YouTube's API docs for how to get the api key.
Head over to Twitter's Developer Platform and create a new app.
Create a new app on Facebook's Developer Platform.