Skip to content
This repository has been archived by the owner on Sep 7, 2019. It is now read-only.

bsiguret/Hypertube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Hypertube

Hypertube is a free software for streaming video over the internet via BitTorrent peer-to-peer network protocol 🎬

How to use it in local ?

  1. Clone the project
  2. Create a .env file in hypertube/server/ with those properties
HOST=localhost
DB_USER=
DB_PASS=
OMDB_KEY=
JWT_KEY=S3cr3tTok3nAcc3ss
PASSPORT_42_CLIENT_ID=
PASSPORT_42_CLIENT_SECRET=
PASSPORT_GOOGLE_CLIENT_ID=
PASSPORT_GOOGLE_CLIENT_SECRET=
PASSPORT_GITHUB_CLIENT_ID=
PASSPORT_GITHUB_CLIENT_SECRET=
SMTP_MAIL_AUTH=
SMTP_MAIL_PASS=
NODE_ENV=prod
PORT_BACK=3000
  1. Where can I find out my API keys OMDB, 42_CLIENT Only available for 42 Student (OPTIONAL), GOOGLE, GITHUB, SMTP,

For 42, Google and Github you have to register a new application, fill up

  • Homepage URL with http://localhost:3000
  • Authorization callback URL with http://localhost:3000/api/auth/PLATFORM/callback where PLATFORM is 42, google or github
  1. Then run this command into hypertube/server/ and hypertube/client/ to install packages and dependencies from package.json, if you encounter any problem with node-sass module, run yarn add node-sass
npm -i 
  1. Run the server-side (hypertube/server/)
npm start
  1. Create the tables of database
curl http://localhost:3000/api/create_base
  1. Populate the database
curl http://localhost:3000/api/save_movies
  1. Run npm run build into hypertube/client/ then install serve npm i -g serve and finally run serve -s build

  2. Go to http://localhost:5000 and chill !

Running

Create an account, and check your email on mailtrap to activate it.

hypertube

Our stack

* React / React-router / Redux
* Node.js / Express
* JavaScript ES6+
* MYSQL
* Ant-Design
* SCSS
* Passport

Resource

YTS POPCORNTIME

Author

Written by lezhang, zxu, bsiguret and myself.

About

Popcorn time/Netflix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •