Data dodania Pytanie
2017-01-06 11:01 How to display all eslint warnings of the whole project in Atom? »
Currently my client-side project is build by webpack. Linting the project is part of the build process. All lint warnings/errors in the project are di...
(1) odpowiedzi
2017-01-05 21:01 nodejs: why calling hasOwnProperty ist different from global.hasOwnProperty? »
Maybe this is a newbie question, but I cannot find or think out the explanation. Start the Node.js console. > global.hasOwnProperty === hasOwnProp...
(4) odpowiedzi
2017-01-05 17:01 Passing a sql table created with alasql from Server (node.js) to Client (ejs) »
I would be very glad to get some help on the following topic, given I didn't manage to get through it. My objective is to gather some data on the serv...
(1) odpowiedzi
2017-01-05 14:01 How to shrink size of Docker image with NodeJs »
I created new Angular2 app by angular-cli and run it in Docker. At first I init app on my local machine: ng new project && cd project &&...
(2) odpowiedzi
2017-01-05 14:01 Error: request entity too large in graphql services of node »
I am working on node based graphql project, trying to send base64 formate image to server. I am using bodyparser module and configured it as bellow. ...
(1) odpowiedzi
2017-01-05 09:01 Express app with EJS template giving Error: Failed to lookup view "/id" in views directory "/home/USER/Desktop/scholarship-app/views" »
I am trying to render the request url for id in my express app and getting the following error Error: Failed to lookup view "/id" in views directory ...
(1) odpowiedzi
2017-01-04 16:01 How can I retrieve the properties of a data object in EJS/node.js? »
I am passing a data object, as a parameter, to the render method, and assigning to it the variable name "values". app.get('/', function(req, res) { ...
(2) odpowiedzi
2017-01-04 14:01 Using csurf with react-server »
I would like to add csurf as an express middleware inside the react-server for a universal app. What I want to achieve is adding the csrf token to a ...
(0) odpowiedzi
2017-01-04 13:01 Is there a nice way to route using EJS teamplate avoiding repetition with Express server? »
Let's say that my app has two view: index.ejs, profile/index.ejs I want to route using express code like below. /* GET home page. */ router.get('/', ...
(2) odpowiedzi
2017-01-04 11:01 Mongoose - deprecated mongodb@2.2.16: Please upgrade to 2.2.19 or higher? »
Why do I keep getting this warning message below when I try to install mongoose? npm WARN deprecated mongodb@2.2.16: Please upgrade to 2.2.19 or h...
(1) odpowiedzi
2017-01-04 07:01 Getting TypeError: Unknown encoding: 1 while running the server script with Mongoose »
I am running the following code to insert fruit names into the database with Mongoose. It does insert the object but then it throws a TypeError: Unkno...
(2) odpowiedzi
2017-01-04 02:01 how let html-webpack-plugin works with backend render ejs? »
I want use it with the backend render template ejs . But the plugin render it as a front template. does any one know how to deal this case ? ...
(0) odpowiedzi
2017-01-03 22:01 Combining Observables - waiting 'til all observables fire »
I have this code let $obs = Rx.Observable.merge( this.obsEnqueue, Rx.Observable.timer(2000) ); but this isn't doing want I want - want I wo...
(2) odpowiedzi
2017-01-03 22:01 EJS error: Unexpected token < in NodeJS app »
I'm building a NodeJS application with the EJS template engine. I've used the same syntax as I did in an app I've build earlier, but on every rendered...
(0) odpowiedzi
2017-01-03 19:01 Will Stripe API retry a Webhook request if my server was unable to receive it? »
If I set up a Stripe Webhook to send a request to http://my.website.io but, for whatever reason, my server is down at the time or somehow unable to pr...
(1) odpowiedzi
2017-01-03 18:01 separate data retrieval process from main file while including parts in EJS »
I do <% include header.ejs %> in most of my ejs files. The header.ejs will contain dynamic data from the database. I want to separate the getti...
(0) odpowiedzi
2017-01-03 04:01 Simple $avg Query for Nodejs »
This are all the codes that i have to make the app. So i am able to eitherimport the data/records from a csv file or insert manually from the app at l...
(1) odpowiedzi
2017-01-02 07:01 Refreshing page shows file not found error how to resolve using [angular js + NodeJS/ExpressJS ] »
Note: i tired all questions & answer related this topic. Like This and i tried related questions and try to solve it but not success. I am build ...
(1) odpowiedzi
2017-01-02 04:01 Looping over file, only get one line »
Say we have a text file with this contents: dogs cats bears trees fish rocks sharks these are just words separated by newline chars. I am trying to...
(1) odpowiedzi
2017-01-02 03:01 Node.js loop over array of objects asynchronously »
Sorry if the title itself is a contradiction :) JS beginner here.. I get an array of MongoDB documents and I want to extend each one with another obj...
(2) odpowiedzi
2017-01-01 23:01 EJS conditional statement change CSS »
I have loop in EJS and I want to set css based on my data: <% dummies.forEach(function(dummy) { %> <div class="panel panel-???"> &l...
(2) odpowiedzi
2017-01-01 22:01 Deploy nodejs issue on CF/BlueMix »
When I try to deploy the following repo to CF/BlueMix I got errors for the "devDependencies": Error: Cannot find module 'webpack' If I add webpa...
(1) odpowiedzi
2017-01-01 17:01 How to deploy MERN project using webpack »
I use the following project which use webpack https://github.com/Hashnode/mern-starter I want to deploy it (to prod) i get error Error: Cannot fin...
(1) odpowiedzi
2017-01-01 15:01 downloading an excel file from Node.js back-end using angular.js front-end »
I am trying to download an excel file from a node.js server. when I open the requested file on the server side it is just ok, but when I am opening t...
(0) odpowiedzi
2016-12-31 22:12 NodeJS promise resolution »
const a = [1, 2, 3, 4, 5]; const f = () => new Promise((resolve, reject) => resolve(4)); const g = () => { Promise.all(a.map((member) =&g...
(2) odpowiedzi
2016-12-31 16:12 Node.js + Angular.js promises sync issue »
I am working on a chat app which is Node.js + MongoDB (Mongoose library) on the server side, and Angular.js on the client side. I have a database col...
(2) odpowiedzi
2016-12-31 13:12 Nodejs - Joi Check if string is in a given list »
I'm using Joi package for server side Validation. I want to check if a given string is in a given list or if it is not in a given list.(define black l...
(1) odpowiedzi
2016-12-30 21:12 EJS include partials and declare variables for partials - Nodejs »
I have an EJS file where I include a header: <% include ../partials/header %> In that header I have some tags (title, description) which have ...
(0) odpowiedzi
2016-12-30 20:12 Javascript not linking properly with node app »
Using Node/Express/EJS and I havent included any js files yet, well im starting to and cannot get my alert("working"); to work! Ironic huh. The goal...
(2) odpowiedzi
2016-12-30 17:12 Where to place the front-end javascript files? »
I am developing an express based web application and I started following the application skeleton built by express-generator. Next, I added to my pr...
(3) odpowiedzi
2016-12-30 17:12 What does it mean to say nodeJS is built on the V8 engine? »
I'm beginner to MEAN stack, while studying NodeJS, I'm came up with the following statement that's taking my mind Node.js is a very powerful JavaS...
(7) odpowiedzi
2016-12-30 16:12 Passport JWT auth in unit test - socket hang up »
I'm having an emotional time trying to test protected routes that use passport's JWT strategy, with Authorization header. I've tried axios, supertest...
(1) odpowiedzi
2016-12-29 22:12 Serve one app path with React and serve other paths with EJS »
Currently my express app renders all paths with EJS. I'd like to replace one path in particular to render with React on the client side. That particul...
(0) odpowiedzi
2016-12-29 21:12 NodeJS cluster and database connection »
I have been experimenting clustering in NodeJS (https://nodejs.org/api/cluster.html) and was able to cluster my server. I have a mongodb connection w...
(1) odpowiedzi
2016-12-29 20:12 How can I dynamically populate html data in node for posting, not displaying? »
I'm currently trying to populate html data in a file stream so that I can send it in an email using smtpTransport. I've tried to use ejs but almost ev...
(1) odpowiedzi