GithubHelp home page GithubHelp logo

plumpmath / websocket-midi-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cassiel/websocket-midi-server

0.0 1.0 0.0 2.14 MB

Server for WebSocket MIDI example

Python 0.02% CSS 0.01% JavaScript 82.93% Clojure 17.01% HTML 0.03%

websocket-midi-server's Introduction

-*- mode: org; mode: visual-line; -*-

websocket-midi-server

MIDI note echoing between browsers using WebSockets. Server written in Python

Server

Flask server. Python 2 is fine (and Python 3 virtual environments are broken in macOS.) Create and activate a virtual environment:

virtualenv ~/Desktop/venv2
. ~/Desktop/venv2/bin/activate

Install packages:

pip install flask
pip install flask-socketio
pip install flask-cors

(flask-cors to temporarily enable cross-scripting - see here.)

See main.py for running instructions (either locally, or deployed).

Client ClojureScript/Javascript code gets planted from the websocket-midi-cljs project (see its deploy.sh). In development, the code here will attempt to connect to ws://localhost:3449.

Heroku

  • instructions. Boilerplate for deploying the “getting started” Python app:
    heroku login
    git clone https://github.com/heroku/python-getting-started.git
    cd python-getting-started
    heroku create
    git push heroku master
        
  • Looking through the Gunicorn guide. Need to add Gunicorn to deps, and Eventlet:
    pip install gunicorn
    pip install eventlet
        
  • Dump out to requirements.txt:
    pip freeze > requirements.txt
        

websocket-midi-server's People

Contributors

cassiel avatar

Watchers

 avatar

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.