Skip to content

Instantly share code, notes, and snippets.

@potato4d
Created August 18, 2015 09:39
Show Gist options
  • Save potato4d/b0b7cb969ce4773965b0 to your computer and use it in GitHub Desktop.
Save potato4d/b0b7cb969ce4773965b0 to your computer and use it in GitHub Desktop.
Ring Zeroの連携テスト
var express = require('express');
var app = express();
var exec = require('child_process').exec;
var addr = "";
app.get('/', function (req, res) {
res.send("hello, world");
});
app.get('/ring', function (req, res) {
res.send("hello, world");
});
app.get('/chrome', function (req, res) {
exec('open "/Applications/Google Chrome.app"', function(err, stdout, stderr){
});
});
app.get('/line', function (req, res) {
exec('open "/Applications/LINE.app"', function(err, stdout, stderr){
});
});
app.get('/skype', function (req, res) {
exec('open "/Applications/Skype.app"', function(err, stdout, stderr){
});
});
app.listen(3000, addr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment