Skip to content

Tag: node.js

How to link Gatsby.js with my Express server

I am trying to make a very basic full-stack application where the front-end is Gatsby and the Backend is a simple Express server. I have a Database where I have some users and the goal is get these users in the backend with a query and then displaying them in the Gatsby (React) component using fetch(). Obviou…

Wipe all tables in a schema – sequelize nodejs

To perform unit testing on a mysql database using sequelize as ORM, I need to refresh my database when each test start to run. Actually I wrote a solution like this: but every time I create tables I have to add another instruction. I would implement a single instruction to perform a complete wipe of the entir…

print SQL output in jade file

I’m trying to output an sql query in Jade file. I got it so far that I can print plain text to jade but when I try to put an output from SQL it doesn’t work can someone help me. The code in app.js (…

Filtering existing objects with SQL query

I’m looking for a library that could filter javascript collections of objets from a SQL query. No such results on Google :/ For example, this objects collection… filtered with… would return… Do you know if such a library already exists ? Or should I devellop it by myself… ? (Uhh …