Comments (1)
Try changing back-app.js to launch the server itself using the http module. e.g.
var http = require('http');
var synth = require('synth');
// Set up you middleware
…
// Initialize synth, get express app
var app = synth();
// Create http server
var server = http.createServer(app);
// Set up socket.io
var require('socket.io')(server);
// Launch http server
server.listen(process.env.PORT || 3000);
For reference: http://stackoverflow.com/questions/20548921/access-to-http-server-object-in-node-js-express
from synth.
Related Issues (20)
- Add a `synth routes` command HOT 2
- synth install -f throws error HOT 1
- Add nghtml2-js HOT 3
- Front End Directory layout and more HOT 10
- Combine Synth with another project HOT 4
- Problem with `npm install synth` HOT 3
- Resource Endpoints must take both req, res HOT 2
- What is missing before an 0.5.4/0.6.0 version can hit npm HOT 23
- No longer require back-app.js
- Can I have a front-end page/endpoing that is not reflecting api? HOT 3
- Synth install front-end packages does not handle package conflicts. HOT 6
- We should have a gitter.im chat channel for synth HOT 1
- How can we make ServerRestart (on gulp watch) more gracefull HOT 3
- Cannot create a new controller HOT 6
- Using Commanderjs instead of your handmade bin file HOT 1
- about the routing path --> Filesytem HOT 3
- Bluebird version HOT 2
- lodash 3.2.0
- Synth was broken when I create a new project or auto restarting server HOT 7
- node request package using in synth HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synth.