Skip to content

Instantly share code, notes, and snippets.

View bitgord's full-sized avatar

Michael Gord bitgord

View GitHub Profile
@jbavari
jbavari / app.js
Created December 8, 2014 19:29
Node API server with CORS disabled, AngularJS controllers with proxy and no proxy, and the ionic.project settings to allow proxy
var express = require('express')
var app = express()
app.get('/api/feed', function(req, res) {
res.json({name: 'feed', items: ['first', 'second']})
})
var server = app.listen(3000, function () {
var host = server.address().address