Giter Site home page Giter Site logo

sonic-pi-web's Introduction

Sonic-Pi-Web

Sonic-Pi-Web is a collaborative environment for Sonic Pi. It allows multiple users edit the same file in real time.

Quick Start

Installation

  1. Make sure you have Node installed.

  2. Clone the repository.

  3. Inside the root directory run npm install to install dependencies.

  4. Install Etherpad-lite.

  5. Install Sonic Pi.

    • Note: Recent updates moved some files in Sonic Pi, which makes sonic-pi-tool fail to locate things properly; for now, is best to use a Sonic Pi version before 3.2.
  6. Install sonic-pi-tool.

Configuration

  1. Run your instance of Etherpad-lite. A key will be generated in APIKEY.txt.

  2. Copy this key to the file /modules/etherpad-api.example.js. For the tests to work, its also necessary to copy the key to /test/3_etherpad-lite.js

  3. Either make a copy of this file and remove the .example, or just remove it from the original.

Running

  1. Run Etherpad-lite.

  2. Run Sonic Pi through sonic-pi-tool: sonic-pi-tool start-server.

  3. Run the application either with: DEBUG=sonic-pi-web:* npm start or just npm start.

Technologies

The app integrates different technologies to achieve the collaboration of multiple users in real time, editing the same document of Sonic Pi.

Back-end

The core app, the logic, is built in Node JS, using the express web framework.

Socket.io is used to fire and listen for some events, like playing or stopping the current file being edited, and making the server respond acordingly.

Etherpad-lite is the service that allows multiple users edit the same file in real time. Its pads are embbeded in the web app, where users write the code to be interpreted.

Sonic Pi needs to be there so the files are ran through its server; its being used as the interpreter.

Allows controlling Sonic Pi from the command line. Using the commands available is how the code in the pads from the app are passed to Sonic Pi to interpret.

Front-end

Skeleton provides a CSS bolierplate that is expanded a bit for the UI of the app.

Used to embed the pads and interact with the Socket.io client in the pages of the app.

sonic-pi-web's People

Contributors

maglo22 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

sonic-pi-web's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.