Data dodania Pytanie
2018-02-15 17:02 Why do I get a Reference Error in EJS »
I add a title to a header of my sidenav and my code runs fine in the EJS template. But when I add a second output in a list I get a reference error. ...
(1) odpowiedzi
2018-02-15 16:02 Mocha - should I initialize stubs directly in the describe() block or inside before() »
I need a reference to the stub variables so that I can reset() and restore() on afterEach() and after() callbacks. My initial approach is to define t...
(1) odpowiedzi
2018-02-15 13:02 Good reasons to separate REST API from authentication server? »
This is a very basic and maybe quite general question, but I think it is appropriate to at least ask it here. I have a React front-end and following a...
(0) odpowiedzi
2018-02-15 09:02 How to convert a PHP website into EJS (Effective JavaScript tempting) »
Just static pages not dynamic content like ajax call and all. <? include_once( LandingPage::find( 'includes/header.php' ) ); ?> <? include_o...
(0) odpowiedzi
2018-02-15 04:02 Gmail API nodejs messages.list labelIds not working »
I am using node.js in a server to access a user's Gmail Inbox. The OAuth2 part works great, but when I try to specify the INBOX to get a message list,...
(1) odpowiedzi
2018-02-14 19:02 How to properly set Ejs Partials »
I have an ejs sidebar partial <div class="col-3 flex-nowrap"> <nav id="sidebar"> <!-- Sidebar Header --> <div class="si...
(1) odpowiedzi
2018-02-14 17:02 Using request/request to post file from the browser »
I have a Node.JS project with a server-side and a client-side powered by webpack. I was hoping to convert my project from a combination of axios/reque...
(1) odpowiedzi
2018-02-14 16:02 Understanding callbacks in node »
I am beginner in nodejs. I am trying to understand a bit of code. Basically it creates an event. models/event.js EventSchema.static("createEvent",fu...
(2) odpowiedzi
2018-02-14 13:02 Difference b/w PBKDF2 implementation in Node.js and Java »
I'm trying to implement a Java code which generates a PBDKF2 key in Node.js, but the result is different in both the case. here's the Java code: Stri...
(1) odpowiedzi
2018-02-14 05:02 How to display image URL path stored in modgodb in the front end using node js »
I have successfully stored the image path of the pictures uploaded. They look like this http://localhost/public/Images/okro.jpg but I don't know how t...
(1) odpowiedzi
2018-02-14 03:02 How to render index page with Vuejs using Node + Express »
I'm building a small application with Vuejs + Node but currently have to run 2 servers in dev: my node server: nodemon server.js and Vuejs built in ...
(1) odpowiedzi
2018-02-13 19:02 Instead of JSON response to POST request, what are my options for React? »
Client-side I have a <form method="POST" action="/register"> which makes an SQL query. Server-side I have this: router.post('/register', func...
(1) odpowiedzi
2018-02-13 15:02 Passing variables through Node MySQL function »
I've created a simple function that runs a query and fetches a field value from a MySQL database in Node. I'm using the normal 'mysql' library. For so...
(1) odpowiedzi
2018-02-13 14:02 How to display images stored in Mongodb using Node.Js »
I need your help on displaying images stored in MongoDB using Node.JS and express framework. I've successfully saved the image using this method: ...
(0) odpowiedzi
2018-02-13 11:02 npm runs "JavaScript heap out of memory" (nearly) every time »
I got problems with running npm into FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory. Since I installed node.js&am...
(1) odpowiedzi
2018-02-13 10:02 Create React App with Express API cookie authentication »
My setup is thus: Node server running Express which runs an API. Inside a subdirectory client is a Create React App project, with the proxy field set...
(0) odpowiedzi
2018-02-12 17:02 nextPageToken doesn't change »
I am trying to use the node.js Google API to iterate over my email messages const google = require('googleapis'); The problem is that I keep ge...
(0) odpowiedzi
2018-02-12 10:02 ejs ignoring if statement if a css class is added to the element »
I'm having a strange problem with ejs template engine in a nodejs, express app, that it's ignoring the if statement and showing the html inside if a c...
(0) odpowiedzi
2018-02-12 09:02 bot framework send proactive message by user address »
I'm using Microsoft Bot Framework, Webchat channel, NodeJS Also using Bot-Trees to manage my conversations. How can I send the user proactively mess...
(2) odpowiedzi
2018-02-12 03:02 Warning: React.createElement: type is invalid -- bundle.js »
I'm taking a tutorial to learn React JS, everything was fine, for days I could run an example, simple, carrying out a recommended basic configuration,...
(1) odpowiedzi
2018-02-11 22:02 How Do You Use JS Promises To Keep Requesting From API While The API Returns A Value? »
I am trying to keep requesting from an API while the API continues to return. I am using the LaunchLibrary API (https://launchlibrary.net/docs/1.3/api...
(2) odpowiedzi
2018-02-11 17:02 Using EJS template engine like Latte (Blocks) »
I need to use EJS template system like this: Layout: <html> <head> <link rel="stylesheet" href="style.css"> {block head}...
(0) odpowiedzi
2018-02-11 16:02 Is Promise.resolve a asynchronous function? »
When I have the following code: var promise1 = Promise.resolve([1, 2, 3]); promise1.then((value) => { console.log(value); // expected...
(4) odpowiedzi
2018-02-11 14:02 Javascript, Promise.then return values »
Doing some research about Promises and I know that a Promise object can be in three states (pending, resolved, rejected). The logic responsible for ea...
(3) odpowiedzi
2018-02-11 12:02 How to apply a microservices architecture to a voting application? »
I am developing the FreeCodeCamp full stack voting application and would like to apply a microservices architecture. The user stories of the voting ap...
(2) odpowiedzi
2018-02-10 19:02 node.js convert emojis into unicode or something else? »
I am trying to mess around with the facebook-chat-api NPM package. I am trying to check whenever the message.body contains a fire emoji (🔥) it will...
(1) odpowiedzi
2018-02-10 18:02 Error: Unexpected token ; in EJS file »
My EJS file was working file and was rendering before I added a switch case logic in my EJS file. It gives me an error stating- Unexpected token ; and...
(0) odpowiedzi
2018-02-10 15:02 Node js standard for storing database sql files and procedures »
All What is the best practice for storing SQL's and stored procedures form PostgreSQL in nodeJS, i see there is models but its used for mongoose sche...
(0) odpowiedzi
2018-02-10 14:02 Put data from previous promise into new promise »
I need to put data from previous promise result to the next promise result. var database = admin.database().ref('/schema-v0_1/objects/subscription');...
(1) odpowiedzi
2018-02-10 10:02 express remove prefixed URL to public folder »
Even though i have created static public folder in app.js when i navigate to "http://localhost:3000/calenders/add" and i don't get any styles which...
(1) odpowiedzi
2018-02-10 06:02 how to upload image server side in ionic 2 / 3 »
I'm building an app with Ionic 2. I need to take a photo from gallery or camera and upload this picture to my server. I have this code that opens the ...
(1) odpowiedzi
2018-02-09 13:02 Google App Engine API + static architecture »
I'm trying to (con)figure the best way to structure a JS client + NodeJS server app to host it on Google Cloud AppEngine (plus possibly other GCP reso...
(2) odpowiedzi
2018-02-09 12:02 Why is my async function not working? I just want it to console.log the results of the mongodb query? »
I keep getting Promise { < pending > } on the console.log, I am not too experienced at all with Async functions. (Using JavaScript, Node, Mongodb)...
(2) odpowiedzi
2018-02-09 11:02 require.resolve not resolving dependency »
I was working on a node module, where I would have to check if the user had installed an specific package (that's the logic I have to follow) and if n...
(2) odpowiedzi
2018-02-09 09:02 Can you explain this 6-times difference in performance between Chrome browser and Node? »
This is my test code: function norm3Dtest(a) { let i; for(i=0;i<1e+8;i++) { const x = Math.random()*1e+3; ...
(0) odpowiedzi