Peertuber is the aggregator of the Peertube instances. It is based on the official API that could be found here. To learn more about Peertube visit official site.
Current repository contains the code of the backend server of Peertuber. Check the front-end client repository here.
Peertuber demo.
- [Node.js] (https://nodejs.org/)
- [Express] (https://expressjs.com)
- [Mongoose] (https://https://mongoosejs.com/)
- [Express-graphql] (https://github.com/graphql/express-graphql)
- [Graphql] (https://github.com/graphql/graphql-js)
- [Bcrypt] (https://github.com/kelektiv/node.bcrypt.js)
- [Cookie-parser] (https://github.com/expressjs/cookie-parser)
- [jsonwebtoken] (https://github.com/auth0/node-jsonwebtoken)
- [Cors] (https://github.com/expressjs/cors)
Create mongodb instance and download videos and instances collections.
mongoimport --host <mongodb uri string> --db <db_name> --type json --file <path/to/downloaded/files> --jsonArray --authenticationDatabase admin --ssl --username <username> --password <password> --collection <collection name>
git clone https://github.com/acdmft/peertuber-back.git
cd peertuber-back
npm install
// to start server
node server
PORT=5000
MONGO_URI=<mongodb uri>
SERVER_CODE=<secret code>
ALLOWED_URL=http://localhost:3000 // client application url
VIDEO_COLL=<mongodb collection>