Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
5 votes
0 answers
76 views

Correct abstractions/organisation of a NodeJS GraphQL API

I recently did a quick take-home test for a potential job opportunity. It included building a GraphQL API with nodeJS. I am not an expert in node (mostly use Python at work) but I have used it for ...
Sajomancer's user avatar
1 vote
1 answer
113 views

Turning simple Node.JS Postgres query and logging into most-functionally-pure-possible code

After reading "How to deal with dirty side effects in your pure functional JavaScript," I've decided to take something I do on a regular basis ("Original approach" below)—connect to a Postgres ...
rvrabbit's user avatar
  • 113
4 votes
0 answers
2k views

Automatically generate TypeScript classes from database tables

Made a project to generate TypeScript classes from database tables, and I'm looking for input if the code is reasonable. pg and ...
data's user avatar
  • 141
4 votes
2 answers
626 views

Consume etherscan.io API, store in DB, serve from web app

I didn't make it to the next stage in this interview process, because another applicant did better than me, which wasn't surprising given that this was my first foray into Node.js. I'd like some tips ...
feuGene's user avatar
  • 363
3 votes
0 answers
1k views

Save file from request to database

I am saving (image) files to PostgreSQL database in my Node.js and Express server application. The code is used to upload user images to server (at the moment it is not restricted to image files in ...
Juholei's user avatar
  • 135
11 votes
2 answers
11k views

Node.js password salting/hashing

In view of the recent LinkedIn breach, would anyone care to review my data access routines relating to user access? This is a standard node.js module, accessing a Postgres database. ...
stusmith's user avatar
  • 245