NodeJS Express, Handlebars, Socket IO. MongoDB
NodeJS Express powered video chat and collaboration tool proof of concept
Checkout this repo, install dependencies, configure, then start the app.
$ git clone git@github.com:fernandedios/node-video-collab.git
$ cd node-video-collab
$ npm install
-- configure app
$ npm start
This web application requires the following as starting point:
module.exports = {
base: 'http://localhost:3000',
email: 'your_email_address',
peerServer: {
host: 'localhost',
port: 9001,
secure: false // whether the peerJS server is in a secure server or not
},
mailer: {
service: 'Gmail',
auth: {
user: 'your_gmail_address', // gmail account to use as mailer
pass: 'your_gmail_password'
}
},
dbConnstring: 'mongodb://your_mongodb_connection_string',
sessionKey: 'session_key', // can be random string
facebook: {
clientID: 'facebook_app_client_id',
clientSecret: 'facebook_app_client_secret',
callback: 'http://localhost:3000/auth/facebook/callback'
}
};
Save as 'dev.js' and place it inside the config folder.
You will need to add the following environment variables to your production host
process.env.BASE_URL,
process.env.USER_EMAIL,
process.env.PEER_HOST,
process.env.PEER_PORT,
process.env.PEER_SECURE,
process.env.MAILER_SERVICE,
process.env.MAILER_USER,
process.env.MAILER_PASS
process.env.MONGO_URL,
process.env.SESSION_KEY
process.env.FB_CLIENTID,
process.env.FB_CLIENTSECRET,
process.env.FB_CALLBACK
You will need to setup a separate peerJS server for production use. You can use the companion peerJS server setup here
Access the application preview.
node-video-collab © 2019, Fernan de Dios.
fernandedios.com · GitHub @fernandedios · Twitter @fernan_de_dios