Hypertube is a free software for streaming video over the internet via BitTorrent peer-to-peer network protocol 🎬
- Clone the project
- Create a
.envfile inhypertube/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
- 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 URLwithhttp://localhost:3000Authorization callback URLwithhttp://localhost:3000/api/auth/PLATFORM/callbackwherePLATFORMis 42, google or github
- Then run this command into
hypertube/server/andhypertube/client/to install packages and dependencies from package.json, if you encounter any problem withnode-sassmodule, runyarn add node-sass
npm -i
- Run the server-side (hypertube/server/)
npm start
- Create the tables of database
curl http://localhost:3000/api/create_base
- Populate the database
curl http://localhost:3000/api/save_movies
-
Run
npm run buildintohypertube/client/then install servenpm i -g serveand finally runserve -s build -
Go to
http://localhost:5000and chill !
Create an account, and check your email on mailtrap to activate it.
* React / React-router / Redux
* Node.js / Express
* JavaScript ES6+
* MYSQL
* Ant-Design
* SCSS
* Passport
