Hypertube is a free software for streaming video over the internet via BitTorrent peer-to-peer network protocol 🎬
- Clone the project
- Create a
.env
file 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 URL
withhttp://localhost:3000
Authorization callback URL
withhttp://localhost:3000/api/auth/PLATFORM/callback
wherePLATFORM
is 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-sass
module, 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 build
intohypertube/client/
then install servenpm i -g serve
and finally runserve -s build
-
Go to
http://localhost:5000
and 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