Data dodania Pytanie
2017-10-05 10:10 Mongoose switching multiple connections »
I am using Node.Js 8.6 along with Mongoose 4.11 and have multiple database connections. Db connections are established via mongoose.createConnection. ...
(1) odpowiedzi
2017-10-04 20:10 Is it possible to pass an ejs variable to embedded JavaScript File »
I have four files, and I'm using node for this project. I have index.ejs,app.js,countymap.js,countries.geo.json. app.js renders the index.ejs file w...
(1) odpowiedzi
2017-10-04 14:10 Setting a DocumentReference in Document on Firestore (NodeJS) »
I am trying to create a doc with a reference on Firestore with NodeJS v8.6.0. Like this const admin = require('firebase-admin') admin.initializeApp({...
(1) odpowiedzi
2017-10-04 14:10 Displaying data from a Mongodb collection in ejs using Mongoose »
I am brand new to programming. I have a collection called "Practice" in my local database which has "name, role, org". I am trying to figure out how t...
(1) odpowiedzi
2017-10-04 13:10 How to display json stringfy array data in node.js "html page"? »
I am pretty new to Ionic and NodeJS, I have a JSON data array which is the response of the predict(...) call from Clarifai recognition and I am trying...
(1) odpowiedzi
2017-10-04 11:10 Wait seconds before running next task on scripts package.jscon »
What I want to do is when I run npm run dev to execute those both tasks I need to wait for 5 seconds until next task runs. Run the npm run server wai...
(2) odpowiedzi
2017-10-04 04:10 Searching JSON array using another JSON array node js »
I'm trying to filter a JSON array using another JSON array criteria that I have using (filter). Here is my code: function filterArray(object, crit...
(1) odpowiedzi
2017-10-03 16:10 Sweet alert 2 not showing up as a modal when alert thrown »
I assume that I must be importing this wrong some how, but I am not sure. I followed the directions on the github. It says that I can npm install it a...
(2) odpowiedzi
2017-10-03 13:10 Deleting a record using Mongoose with Redux »
I want to delete a record in my mongoDB, when a user presses a button for the given record. For reference: I have all my mongoose and redux code s...
(2) odpowiedzi
2017-10-03 12:10 Can't upload content on quickblox using node.js »
I am using node js to upload content in quickblox. Following is the code I am using. While uploading a picture i get an error of var inputFile =...
(1) odpowiedzi
2017-10-03 09:10 Rendering result from npm source »
I am trying to build a light weighted api for a project. However I am having troubles rendering my result to my .ejs and combine multiple function res...
(0) odpowiedzi
2017-10-03 04:10 Only show inputs if selected in settings page »
I am trying to figure out how to have a user go to /settings and pick a few check boxes then when they go to /new they will only see the inputs that c...
(1) odpowiedzi
2017-10-02 23:10 Register Node Module Manually »
Question: I have a project in TypeScript that uses several APIs I don't have access to on my computer (they exist on the web). The code will compile ...
(1) odpowiedzi
2017-10-02 21:10 Use fse.readFile() inside .map() »
I am trying to read the contents of several files in Node.js using promises. Since the standard fs module does not provide a sufficient promise interf...
(1) odpowiedzi
2017-10-02 21:10 How to pass in variable from database | Node | Express »
I need to pass a variable into a ejs template file. I have a routes.js file in my /routes directory, then I have a /views and a /views/partials. How d...
(1) odpowiedzi
2017-10-02 20:10 Navigation using express and EJS »
Having a issue figuring out how to navigate between EJS pages effectively: File directory: I want to go from my index.ejs page to the about.ejs pa...
(4) odpowiedzi
2017-10-02 18:10 Mongoose Get full list of users in table »
I got all users details to use if and for loop from MongoDB database. but I want to all details in a HTML table so how to do that? I got all details ...
(1) odpowiedzi
2017-10-02 16:10 How to send data from client to redis and then after to laravel »
I'm using laravel and redis for real time chat. I can fire event from my laravel and receiving that data to client side. My problem is how can i sen...
(1) odpowiedzi
2017-10-02 11:10 Is it possible to use React/Redux/Saga application without back-end »
Previously I used React/Redux/Saga just as "presentation" layer of an application with Ruby/Rails and Nodejs back-end. Currently there are couple of b...
(2) odpowiedzi
2017-10-02 00:10 Can I make TypeScript include node_modules for transpilation? »
OK so I have an interesting situation in setting up my Node.js TypeScript project. I want to be able to refer to my local modules using a non-relativ...
(0) odpowiedzi
2017-10-01 23:10 Node.js Promise reference error »
I'm getting a reference error saying check is not defined when I call check().then(function(employees) towards the bottom of my code and I;m not sure ...
(3) odpowiedzi
2017-10-01 20:10 How can I use async/await at the top level? »
I have been going over async/await and after going over several articles, I decided to test things myself. However, I can't seem to wrap my head aroun...
(1) odpowiedzi
2017-10-01 19:10 Trying render html entities in my express ejs Application »
Here is the page I am trying to render <% include ../partials/boilerplate %> <div class="triviaContainer"> <h1>GAME...
(1) odpowiedzi
2017-10-01 18:10 Adding CSS to EJS »
Have difficulties linking my css files when using EJS. Already looked into other answer but can't figure it out This is the code I used reference for ...
(2) odpowiedzi
2017-10-01 02:10 How do I add another function to the bot? (updated) »
I'm trying to add an 8ball function to my Discord bot, but when I tried to run the code, it said there was an Unexpected token ",". When I removed the...
(1) odpowiedzi
2017-09-30 20:09 How do I configure a TypeScript project that uses JavaScript modules compiled from PureScript? »
TL;DR I want to create TypeScript typings for compiled PureScript modules, and distribute them in my npm package. I'm more than happy to maintain thes...
(3) odpowiedzi
2017-09-30 17:09 Warning: Failed prop type: The prop `todos[0].title` is marked as required in `TodoList`, but its value is `undefined` »
I want to add title to my server as you see in the picture enter image description here its ok to value but its not working with title, title is in ...
(1) odpowiedzi
2017-09-30 08:09 Attach visual studio debugger to electron app »
I'm attempting to debug electron app from visual studio 2017 (and not vscode) from scratch. I created a console nodejs project, install and save elec...
(1) odpowiedzi
2017-09-29 22:09 Passing JSON URL data to .ejs view in Node.js »
I have got a small Node.js app running which makes a request to a URL containing the current weather forecast, and I can successfully console log the ...
(3) odpowiedzi
2017-09-29 21:09 Striptags NPM causes Webpack / Babel / React ES6 compile error »
I am running into a bad compile error running Babel / Webpack on a React / Node app. The Webpack appears to compile, but UglifyJS is throwing eval e...
(1) odpowiedzi
2017-09-29 20:09 How can I execute javascript from an ejs file? »
I am building my first website and I am using node.js with express and ejs. Now, I want my index.ejs file to call a javascript file. The treeBuilder.j...
(0) odpowiedzi
2017-09-29 17:09 Can't make lusca CSRF work with https: 403 forbidden »
This is driving me nuts. I have tried reading the lusca source code but found it hard to understand. Checked several examples too, but since each con...
(0) odpowiedzi
2017-09-29 16:09 Why does my node.js app get "hung up" when I send more then 50000 queries simultaneously? »
Moving to other question Here is final question on this topic. I removed Express from the equationand generally cleared the question. Before you s...
(0) odpowiedzi
2017-09-29 06:09 Android chat with Socket.io, Laravel, and Redis »
I m very new to the whole socket stuff using node. What I am trying to achieve is make a chat application using Socket.io on Node Js, with Laravel and...
(0) odpowiedzi
2017-09-28 23:09 NodeJS - Trying to render index.ejs file, but still only servers index.html that is in my public folder »
The code below still serves the index.html page that's in the public folder, but I want to render index.ejs. I followed the video example so I'm not s...
(1) odpowiedzi