jsbandwidth icon indicating copy to clipboard operation
jsbandwidth copied to clipboard

Create working demo in nodejs and Spring

Open unseen1980 opened this issue 8 years ago • 5 comments

Hi,

Do I have to create a new route '/test' in server? I created a simple webserver with express which serves static files.

var express = require('express');
var app = express();
app.use(express.static('client'));
app.listen(2222);
console.log('Server running at http://localhost:2222/');

But I am getting a 404. It makes a request in this http://localhost:2222/test?id=1448291994940

A working demo would be appreciated.

unseen1980 avatar Nov 23 '15 15:11 unseen1980

yes, I would appreciate the same, a working demo.

Also, why do we need other programming platforms such as php / JAVA /asp.net for post? Can't we just send a post request to node.js express?

computersrmyfriends avatar Dec 24 '15 12:12 computersrmyfriends

+1

carloscarcamo avatar Feb 26 '16 15:02 carloscarcamo

does this module just runs with node.js? can we use it inside a html page?

beinto avatar May 17 '16 08:05 beinto

Yes, it can be used in a html page. And it can be used with any web server.

beradrian avatar May 17 '16 08:05 beradrian

sorry, but I still cannot generate a .js that can be used. it gives me an error that exports is not defined

beinto avatar May 17 '16 08:05 beinto