Skip to content

Tag: node.js

Encrypting data using query in Node.js and MySql

Is it safe to encrypt the data posted in MySql using query in node.js? I tried something like this and it works pretty fine in terms of encryption but I don’t know exactly how safe it is, I am pretty much a begginer in this area. Answer Let’s say I wanna encrypt the password so it could be safe fr…

Import JSON inside NPM Module

I made an npm module, this module export a function that load a json file and then export the result ( a little bit simplified ) The probleme is when I import this module inside another project I have this error : I looks like when I import my module, it try to read the json inside the current directory

MongoDB attribute to array migration script

I’m trying to make a migration for a database, which has the following structure as of now: There have been some changes in how we need to handle a site, having now the possibility to have multiple sites, and not only one. So I need to change the DB to look like this: Is there a way to change the

Difficulties to make another route expressJS

I am doing a site as of my studies. The technology being free, I decided to code with nodejs/Express. For my first route /home, everything went well. But I can’t create others. Yet I thought I understood the system well. It would bother me if it was due to a silly error because I have been on this probl…