Questions tagged as 'nodejs'

2
answers

Log in on node.js

I am new programming in node.js and I wanted to ask you a question: I have the following log in (which works without problem) but I'm not sure if it is the most recommendable way of doing things since I do not know if you are doing it I work in...
asked by 02.01.2017 / 17:30
1
answer

Byte arrays do not match between c # and in nodejs

The problem is this, I have this portion of code in C # that generates a token. SHA256Managed hashstring = new SHA256Managed(); byte[] hash = hashstring.ComputeHash(Encoding.ASCII.GetBytes("araña")); string StringByte = BitConverter.ToString(h...
asked by 30.10.2018 / 19:33
2
answers

Console error when running my custom node.js script called npm start

I created a custom command in my package.json called npm start that includes tasks like gulp watch & node server.js, when executing it in console the following appears:    events.js: 160         throw er; // Unhandled 'error' event     ...
asked by 29.05.2016 / 21:11
1
answer

problems with making sql queries in nodejs

The id is passed by parameter to my query function, but it fails to execute the query this is my code: objBD.query('SELECT u.ID_U, u.nombre, l.ID_L,letra, t.ID_T,tiempo from USUARIO u INNER JOIN LETRA l ON u.ID_U = l.ID_U INNER JOIN TIEMPOS...
asked by 05.10.2016 / 18:39
1
answer

Create file with Hexadecimal and ASCII content in nodejs

I need to create a flat file with a string that contains hexadecimal and mostly ASCII. The string is something like: var a = "var x = '\x68\x6F\x6C\x61\x61\x61\x61\x20\x6D\x75\x6E\x64\x69\x6C\x6C\x6F\x6F\x6F\x6F\x6F'"; The contents of the v...
asked by 12.10.2016 / 23:00
3
answers

NodeJs gives me this error when starting

I'm new to Nodejs and download this code and I can not start it, I've been working with other projects and they work fine (install the express and the cli, in addition to the node-telegram-bot-api as it says on gitHub) what can I miss? the cod...
asked by 01.06.2017 / 01:55
2
answers

Use React without Node.js

I'm starting on this React. From what I'm seeing there's no other way to use React other than writing it in JSX and then compiling it with Babel to make it work. But to be able to use Babel from console I have to use Node.js. But the only one I...
asked by 15.11.2016 / 04:12
2
answers

Get requests authorized based on permissions using node js

What I want to do is, that every time a user, registered or not, when requesting or entering a URL, I want to know what the user is, to see if he has access, and if he has it Render the page with the personal information of said user. I tried...
asked by 30.12.2015 / 01:04
2
answers

export and use variables in NodeJS

I have the following file where the values assigned to two variables are stored; same that I export with module.exports //archivo datos.js const num1 = 12 const num2 = 22 module.exports = { uno: num1, dos: num2 } Now in a s...
asked by 01.09.2018 / 01:29
2
answers

How are environment variables retrieved in NodeJS?

Suppose I have defined an environment variable in my unix shell with a key, for example: export DEV_KEY=abcd123abcd123abcd123 How could I access that variable within the code of a NodeJS program? The goal is that the key is not part of the...
asked by 09.03.2017 / 04:22