Questions tagged [serverside-javascript]

Server-side JavaScript is a set of techniques allowing to build JavaScript applications directly on the server.

Server-side JavaScript is a set of techniques allowing to build JavaScript applications directly on the server.

The most popular server-side JavaScript project is node.js, built on Chrome's JavaScript runtime, V8.

Other server-side JavaScript environments include Jaxer and Narwhal.

CommonJS project also provides a set of APIs which can be used outside the browser.

412 questions
8
votes
5 answers

Are there any ports or alternative implementations of the node.js platform with JavaScript engines other than V8?

node.js is an open source server-side JavaScript platform based on Google's V8 JavaScript engine. It has been rapidly gaining popularity and importance for couple of years now. Now node.js is just a platform. In essence which JavaScript engine to…
7
votes
4 answers

Prerequesite knowledge for working with node.js

Node.js seems to be getting a lot of column inches in the nerd blogs right now, and with a little bit of homework it's not hard to see why. What would be good to know before diving into learning node? I assume Javascript, but any other technologies…
Mild Fuzz
  • 29,463
  • 31
  • 100
  • 148
7
votes
1 answer

React onClick event handler not working using Next.js

I'm making a Reddit clone and I'm using Next.js so its server-side rendered. I started without using Next.js and when I learned about it, I immediately switched to it. I've created a custom _app.js so the header and sidebar exist on every page, and…
7
votes
2 answers

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 implemented Redux action and reducer to store…
7
votes
2 answers

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 webpack. I am now trying to add server side…
6
votes
3 answers

How to convert character encoding from CP932 to UTF-8 in nodejs javascript, using the nodejs-iconv module (or other solution)

I'm attempting to convert a string from CP932 (aka Windows-31J) to utf8 in javascript. Basically I'm crawling a site that ignores the utf-8 request in the request header and returns cp932 encoded text (even though the html metatag indicates that…
6
votes
3 answers

jQuery templates on the server side

Has anyone tried to use jQuery templates (or any other JavaScript based templating) on the server side with something like env.js? I'm considering attempting it to see what benefits could be gained by being able to render identical templates on…
Matt Sheppard
  • 116,545
  • 46
  • 111
  • 131
6
votes
1 answer

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 the one of the example from here :…
6
votes
2 answers

Server Side React Initial Render causes duplicated async calls

I'm using react-router 2.0 on the server. Some of my top-level route components depend on async data to be fetched and uses Redux to manage state. To deal with this, I'm using a static fetchData() method to return a Promise.all of async actions as…
6
votes
1 answer

How to access mysql database with socket.io

I'm just getting into coding server side javascript and have been reading tutorials on socket.io and node.js, but I haven't come across anything demonstrating how to use node.js to access a mysql database. Say for instance I want to create a method…
Gavin Sellers
  • 654
  • 1
  • 15
  • 27
6
votes
5 answers

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 with asynhronous stuff. Is it possible to write…
5
votes
1 answer

Server side javascript - General

Possible Duplicate: What is node.js? Usages of Node.js - What obstacles is it aiming to provide a ramp for? What is the correct scenario to use server side javascript? like node.js What kind of problems it solves?
Tony
  • 10,088
  • 20
  • 85
  • 139
5
votes
1 answer

JSTUN vs PJNATH

I'm going to be writing my own STUN implementation in JavaScript (server-side with NodeJS), and I'm looking for a library to base my code on. I have found both JSTUN and PJNATH, and both seem to be supported by members of stackoverflow. I…
beatgammit
  • 19,817
  • 19
  • 86
  • 129
5
votes
2 answers

SSR does not work when javascript is disabled

Referring to this ticket here: https://github.com/zeit/next.js/issues/4210 I'm currently wondering why when you disable javascript, most of the content using relay modern and NextJS does not work. My initial guess is that since NextJS is a React…
5
votes
1 answer

loading a bundle.js file from webpack changes mime type to text/html

I am trying to achieve server side rendering for an app using react-redux and express for the server, webpack is being used to create the bundle. I started off using the following…