Zoff ==== Zoff (pronounced __søff__) is a shared (free) YouTube based radio service, built upon the YouTube API, with integrated casting with Chromecast. ## Install Prerequisites: ``` MongoDB : https://www.mongodb.org/ NodeJS : https://nodejs.org/en/ npm : https://www.npmjs.com/ ``` Clone this repository into a folder, and navigate to it. Use ```$ npm install``` in the project folder. For the server to run, you have to have the files ``` api_key.js mongo_config.js ``` in ```/server/config```. There are ```*.example.js``` files for all the ones mentioned above. If you're going to deploy the server with a certificate, you also need to create the ```cert_config.js``` in ```/server/config/```. If you want the mailing to work, take a look at ```mailconfig.example.js``` and ```recaptcha.example.js```. You'll need ```mailconfig.js``` and ```recaptcha.js``` for this to work. If you want to use Google Analytics, have a look at ```analytics.example.js``` in ```server/config/```. If you have run the server before the table-structures where added, please run ```node server/apps/rewrite.js```. This will fix any crashes that occurs because of faulty document-collectionnames due to moving channel-settings to a separate collection. Run ``` db.chat_logs.createIndex({ "createdAt": 1 }, { expireAfterSeconds: X }); db.timeout_api.createIndex({ "createdAt": 1 }, { expireAfterSeconds: Y }); db.api_links.createIndex({ "createdAt": 1 }, { expireAfterSeconds: 86400 }); ``` in mongo to have chat_logs and api be deleted after X and Y seconds. Use ```$ npm start``` to start the server. (Alternative you can use the ```pm2.json``` in the project-root, if you prefer pm2 for running the apps.) More info in server/ README ### About Zoff is mainly a webbased service. The website uses NodeJS with Socket.IO, MongoDB and express on the backend, with JavaScript, jQuery and Materialize on the frontend. The team consists of Kasper Rynning-Tønnesen and Nicolas Almagro Tonne, and the project has been worked on since late 2014. ### Contact The team can be reached on contact@zoff.no ### Screenshots of desktop version: ![Frontpage desktop](https://puu.sh/xCI8P/bbfbdd694c.png) ![Channel desktop](https://puu.sh/xCHXj/3f7d826329.png) ![Channel join](https://puu.sh/zf1Ap/16587c0749.png) ![Channel search desktop](https://puu.sh/yhuVE/b50c6bbe1b.png) ### Screenshots of the mobile version:
frontpage
channel channel search
### Legal Creative Commons License Zoff is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Norway License.. Do not redistribute without permission from the developers. Copyright © 2018 Kasper Rynning-Tønnesen and Nicolas Almagro Tonne