Server-side JavaScript is a set of techniques allowing to build JavaScript applications directly on the server.
0
votes
0answers
17 views
React application perfomance. Server side rendering vs. Nginx
Trying to understand which the most performant way of building React apps. I know that SSR rendering is fancy feature which gives you much better support of SEO out of box, also it sends already ...
2
votes
0answers
16 views
Multiple pipes on writeStream open event gives undefined
I am downloading a file from a URL and then I want to write the metadata for that file to the destination stream only after I make sure that the destination file is created(i.e. after fs....
0
votes
0answers
7 views
How to profile a server-side JScript module?
I need to optimize a heavy JScript 5.8 module running server-side on IIS.
While in VBScript there is a Timer function which is used to get somewhat precise timing information, i couldn't get to find ...
60
votes
5answers
104k views
How does setTimeout work in Node.JS?
I guess that once it's executed it's on the queue, but in the queue is there any assurance it will invoke exactly after X milliseconds? Or will other heavy tasks higher on the queue delay it?
0
votes
1answer
17 views
Understanding the difference between Client Side Rendering and Server Side Rendering?
I am kind of in cross roads in the process of understanding the basic difference between Client Side Rendering and Server Side Rendering. After doing significant amount of research, here is my ...
-1
votes
2answers
38 views
React component events not working on NodeJs+Express server
we are building a project using the MERN stack for the first time. It is a Stand-ups and Retros app. The problem is that our react component events are not working on the server side but work ...
0
votes
0answers
17 views
React Redux SSR how to suppress initial actions called from componentDidMount?
I was able to preload all the needed states in the server-side and pass these initial states to the client application's redux store.
I have enabled redux-logger to see what happens in my application ...
0
votes
0answers
10 views
React + Redux serverside rendering, how to dispatch all the needed actions?
Usually all my actions are being dispatched within componentDidMount but to my understanding componentDidMount does not get called in SSR. So, I am thinking of fetching all the actions (all my actions ...
0
votes
0answers
21 views
How to dispatch multiple redux store actions using ES6 Promise?
I am trying to dispatch multiple redux actions in a sequence (or at once, doesn't really matter) using Promise API and it is not working:
Promise.all([
store.dispatch(action1()),
store....
0
votes
1answer
30 views
Run server-side code with google chart select
I have a google visualization table that I'm publishing in a web app.
Background:
I run a script that lists all the documents in a google folder in a spreadsheet. I then push that list into the ...
254
votes
16answers
145k views
nodejs vs node on ubuntu 12.04
I installed nodejs on ubuntu from instructions given here
When I write node --version in the terminal I see this :
-bash: /usr/sbin/node: No such file or directory
I can see node in the /usr/sbin/ ...
0
votes
0answers
22 views
Make an api call from client route handler To api Route handler in express
I have a full stack javascript repo, which has a server and a client folder. My client side is served via server side rendering . Prior to populating the html template i need to fetch some data for ...
53
votes
7answers
29k views
Preventing XSS in Node.js / server side javascript
Any idea how one would go about preventing XSS attacks on a node.js app? Any libs out there that handle removing javascript in hrefs, onclick attributes,etc. from POSTed data?
I don't want to have to ...
2
votes
2answers
722 views
How To Send Streaming Video And Audio Data To The Server?
I am trying to build a video chat web api using html and javascript. So far I found this code that accesses the microphones and webcam on the client's device and displays the video and audio on that ...
0
votes
2answers
147 views
Windows Azure mobile services, server side scripts: data
I have added some tables to my database in in windows azure via entity framework however I am not able to access these tables through the server side scripts (mobile services custom api)and they do ...
0
votes
1answer
29 views
Why singleton Store in Flux can cause issue for server-side rendering
I was reading the following sources Why use Redux over Facebook Flux?, the redux documentation http://redux.js.org/docs/recipes/ServerRendering.html as well as the definition of a singleton. Could ...
51
votes
7answers
32k views
Using a .NET DLL in Node.js / serverside javascript
I have a pet project that is an online game, the entire game engine is written in C# and I would like to know if there is anyway I can call the functions of this existing assembly (.dll) from a ...
0
votes
1answer
42 views
Vue server-side rendering: app not being rehydrated, no error thrown
I have a working Vue app in my dist directory: when served by a server, everything works fine.
When I try to add server-side rendering using vue-server-renderer, it doesn't work. The page loads, but ...
2
votes
0answers
106 views
Vue server-side rendering with vue-router: error thrown
I have a simple app with Vue and vue-router (no vuex), and I need server-side rendering. I'm using pretty much the server code from here:
https://github.com/vuejs/vue-hackernews-2.0
My client-entry....
0
votes
1answer
48 views
Error on server rendering
I use React + Express + Webpack
index.js
require('babel-core/register');
global.__CLIENT__ = false;
global.__SERVER__ = true;
global.__DEV__ = process.env.NODE_ENV !== 'production';
require('./src/...
0
votes
1answer
68 views
Upload react basic application to server
I am trying to upload the following to my personal server to see how it works:
https://github.com/remarkablemark/universal-react-tutorial
I have tried to change the port here: (server.js)
require('...
0
votes
2answers
50 views
yii2: js calulation in server side
This is a page for calculate the product order.
My mentor told me that:
"The code put the code calculation logic inside JavaScript which means, user can simply inject and modified the content and get ...
0
votes
0answers
25 views
Can Webkit with JavaScript Core engine function as Web server?
We have an embedded device at our enterprise environment that uses Webkit for rendering HTML and JS pages in the control panel. This webkit uses Safari browser's JavaScript Core engine.
The devices ...
0
votes
0answers
72 views
Best Practice for Making AJAX Call from Server and not Client
We are using a three tiered architecture for an application. We have a database on one end, a front end server running IIS on the other end, and in the middle a glassfish server for java servlets.
So ...
0
votes
0answers
29 views
Serving HTML, JavaScript, CSS for an web application running on a Win CE device
I have a requirement at my work place that I have to write a web app using HTML and JS and run that app in a Win CE embedded device.
Basically I have to write a server side application and host all ...
0
votes
1answer
34 views
Basic use of server side API and passing server side variable to client side
I've just started my IT degree and I'm a beginner to the use of APIs (and forums like this) so I am truly sorry if my question is to vaguely explained or if it is just plain stupid :), on top of that ...
0
votes
0answers
39 views
Server Side JavaScript Framework for Win CE - Alternative to Node.js
I am trying to run a web application that uses node js in an embedded device that has ARM processor and runs on Win CE.
I tried running the same web application on another device that has ARM-Linux. ...
1
vote
1answer
121 views
How to safely pass Redux store from the server to the client
I am working on a React app with server-side rendering. The app uses Redux for state management and Redux Saga for async actions. In pseudocode, what I am doing on the server side right now is:
1) ...
1
vote
1answer
67 views
Cannot run globally installed node modules in Windows 7
Note: I have tried almost all similar posts related to this issue and found nothing was helpful to me. Hence posting this.
Issue: I'm trying to install http-server package in my Windows 7 machine ...
67
votes
2answers
37k views
What is non-blocking or asynchronous I/O in Node.js?
In the context of Server Side Javascript engines, what is non-blocking I/O or asynchronous I/O? I see this being mentioned as an advantage over Java server side implementations.
2
votes
3answers
90 views
How to return a collection of JSON documents as a JSON array
I have a collection of JSON documents in MarklLogic which I want to return to an API call as a JSON Array.
fn.collection('my-users')
Returns a sequence of JSON docs, I need a valid JSON object, an ...
255
votes
12answers
91k views
user authentication libraries for node.js?
Are there any existing user authentication libraries for node.js? In particular I'm looking for something that can do password authentication for a user (using a custom backend auth DB), and associate ...
1
vote
1answer
25 views
Fetch Images from json_decode()
My Api is returning Json data as
[[{"ID":"1","Image":"img01.jpg"}]]
I am fetching this data through api on local and trying to bind image but not able to do it .
I have tried many solution here , ...
0
votes
0answers
76 views
VueJS v1 - Server Side Rendering
I would like to ask if VueJS version 1 has a server side rendering and that can be read by google crawler/bots for SEO purposes. I have read that server side rendering will be available in V2 but I ...
0
votes
1answer
50 views
How to make this client side code a server side code?
I have wrote a client side code in server side code like this:
strHTMLGrid = strHTMLGrid + "<link rel='shortcut icon' href='/EVServer/Images/favicon.ico'/> \n";
This code looks like this in ...
0
votes
1answer
272 views
server side rendering for react, webpack, node project breaking because 'window' undefined
I get the following error when trying to do server-side rendering with components that reference window. For example when I include slick-carousel (https://github.com/kenwheeler/slick) I get the ...
0
votes
2answers
67 views
Socket.io doesn't work
This is my server.js:
var app = require('express')();
var server = require('http').Server(app).listen(8080,function(){
console.log('working');
});
var io = require('socket.io')(server);
app.get('/...
2
votes
0answers
180 views
How to do server side rendering with Reacjs.Net with Redux together?
I'm trying to do server side rendering with an application made in ASP.NET MVC, using ReactJS and Redux. I'm using ReacJS.Net.
My components are fine with client rendering.
My application could be ...
524
votes
10answers
226k views
Node.js Best Practice Exception Handling
I just started trying out node.js a few days ago. I've realized that the Node is terminated whenever I have an unhandled exception in my program. This is different than the normal server container ...
0
votes
0answers
13 views
How to debug server side code of MeteorJs in WebStorm? [duplicate]
When I set break points in WebStorm my app continues executing without stopping.
How can I configure Meteor/WebStorm to allow me to debug from WebStorm instead of using $ meteor debug?
2
votes
1answer
268 views
Why am I getting this error in using nodemailer ? SSL23_GET_SERVER_HELLO:unknown
I'm building a notification application using nodemailer and I keep getting this error:
[Error: 140735155404800:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/...
4
votes
2answers
434 views
React/Redux isomorphic / server-side rendering and media queries
I started creating an isomorphic React/Redux app based on Node. One requirement of the project is "adapative" rendering of specific components based on a "mobile" and "desktop" view. I have ...
1
vote
1answer
37 views
Provide serverside rendered template for Dojo widget
is there a way in Dojo template based widgets to use server side rendered template instead of static *.html file?
In documentation they do sth like:
add dependency on "dojo/text!./templates/...
7
votes
5answers
10k views
Server-Side javascript framework
I'm looking to replace PHP with something better (everybody seems to say that PHP is evil, right ?), and considering server-side JavaScript.
node.js seems very popular, but I'm afraid I'll go crazy ...
0
votes
1answer
121 views
How to respond to mentions using Twitter API
I have a twitter bot that is functional. It complements someone when they reply to me, which is when @myTwitterHandle is the first thing in the tweet. The following code allows me to respond to them:
...
1
vote
1answer
45 views
Undefined variable in GoogleMap JSX component
In my application, i have the following code snippet from the beginning of my Google Map JSX component (which was written by someone else):
import React from 'react';
import { Button } from 'react-...
5
votes
2answers
5k views
Managing 'window' object in Isomorphic App with ReactJS and Flask Python
I am developing an application with Flask Backend with ReactJS front.
ReactJS app has been developed and bundled with webpack.
Everything works fine with client side rendering which is bundled with ...
0
votes
0answers
83 views
Javascript code in the server-side in MongoDB
I need to process 100s of Gigas of DB on the Server Side and the way I'm doing it right now is by loading a JS file with the shell.
i.e: mongo ipaddress:27017/database_name script.js
This works fine ...
0
votes
2answers
60 views
Stating a Node.js project: Is there only one “server file” in node.js?
I'm in a team project, and my team is slacking, so I'm going to take the lead and start off the repository. We are all new to node.js and come from other backgrounds.
There is only 1 "server," right?
...
0
votes
1answer
136 views
ReactServer#RenderToString not rendering correctly
I'm trying to accomplish server side rendering with React components in Express and templating with Jade. However I'm running into some issues.
Here is my server code, the entry point.
var app = ...