Welcome to Hypertube, a streaming website that allows users to search and watch their favourite movies. All movies are download from a torrent, scraped from YTS and PopcornTime, and then directly streamed on the website.
- NodeJS - Backend
- Express - Web application framework
- ReactJS - Frontend
- MongoDb - Database
- Mongoose - Mongodb object modeling
You need to have installed NodeJS and MongoDb. Here a MongoDb Atlas was used link to the project with a connecting string.
API/server.js
mongoose.connect(`mongodb+srv://${config.mongo.user}:${config.mongo.password}@${config.mongo.cluster}.mongodb.net/${config.mongo.database}`)
API/config/congif.js
module.exports = {
mongo: {
password: 'YourMongoPassword',
user: 'YourMongoUsername',
cluster: 'yourClusterName',
database: 'yourDatabaseName'
}
}
API/config/keys.js
module.exports = {
googleClientID : 'yourGoogleClientID',
goggleClientSecret : 'yourGoggleClientSecret',
facebookClientID: 'yourFacebookClientID',
facebookClientSecret: 'yourFacebookClientSecret',
fortyTwoClientID: 'yourFortyTwoClientID',
fortyTwoClientSecret: 'yourFortyTwoClientSecret',
githubClientID : 'yourGithubClientID',
githubClientSecret: 'yourGithubClientSecret',
cookieKey: 'yourCookieKey',
moviedbKey: 'yourMoviedbKey',
jwtKey: 'yourJwtKey',
};
npm i
npm run installAll
npm run init
npm start
Check the Hypertube Postman Collection to get all the API's endpoints.