Questions tagged as 'express'

1
answer

module.exports mount an array with the api data

Well, I have the following problem, so I can not solve it in any way. Well I have a config.js script module.exports = { "adsense": { "bloco728x90": { "google_ad_client": "ca-pub-x", "google_ad_slot": 00...
asked by 31.05.2017 / 21:50
1
answer

How to show data in ascending order mongoosejs + expressjs

Hello everyone, could you help me? I am trying to show my database records in ascending order, but this is an object inside another and I want to organize by cashOut follows the photo of my DB. I'm using the mongoose and expressjs below as...
asked by 12.05.2017 / 18:00
1
answer

Problem loading static files on routes with nodeJS / expressJS

Programming my first system I came across a little problem ... I'm creating a client system and changed the structure of the views folder as follows: / app / views / clients clients.ejs add.ejs / users users.ejs add.ejs...
asked by 03.03.2017 / 18:21
0
answers

SyntaxError: Unexpected token (244: 78) - Nodejs, Express, jade, mysql

I'm developing a program and out of nowhere in creating a simple page appeared the error below: The program is working everything but this page that appears this error: I've gone over all the lines and found nothing, because I did not chan...
asked by 06.02.2017 / 20:18
1
answer

How to organize the REST API and the site frontend? [closed]

I am creating a Single Page Application, for this, I created a Restful API in Node.js that does all the actions in the database, login, sending emails and etc. I thought about creating a "public" folder in my project and put there my front end....
asked by 09.08.2016 / 01:49
0
answers

External redirect in express

Galera, How do I change this line of code to my: app.use(express.static(__dirname + '/public')); For 1 external redirection, eg redirect to http://www.google.com     
asked by 19.08.2016 / 19:01
0
answers

ExpressJS can not get / route in Openshift, but local works

I have a project with the following structure: server.js /node_modules /build vendor.js main.js index.html I'm using express , and angular 's ui-router . Within server.js I have the following cod...
asked by 11.11.2015 / 02:27
0
answers

NodeJs - socket.io error: xhr-polling

I have a new server configured like this: var express = require('express'); // CHAMADA DA API EXPRESS var app = express(); var server = require('http').createServer(app);...
asked by 30.07.2015 / 15:01
1
answer

How to send information from an html form to a route? - NodeJS

I am a beginner in NodeJS and am responsible for a project in this tool. I'm using the "EJS" engine to create the views. I created a form, to send the information entered by the user, to a route and on this route I process the information and re...
asked by 08.10.2017 / 06:30
1
answer

node ./bin/www and nothing happens

I'm running a crawler that I found in github, but it has no documentation, I created an issue but I did not get an answer, and I'm quite amateurish, so maybe my doubt seems noobesca, but I would like help. Rodo 'node bin / www', because node...
asked by 08.02.2017 / 19:48