Unanswered Questions
178 questions with no upvoted or accepted answers
6
votes
0
answers
112
views
Showing a Wikipedia article's changes as Git commits
I created a small-ish NodeJS script which takes as argument the name of a Wikipedia article (and optionally a Wikipedia edition, "en" is default) and creates a Git repository with each ...
5
votes
0
answers
1k
views
Mocking the file system within a test
I've been using this method to test file-system functions as an alternative to mock-fs due to its lack of symlink support. I'd love to hear what others think and ...
4
votes
0
answers
73
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 ...
4
votes
0
answers
79
views
Simple Markdown Blog
this is my first real website I created after learning about web development.
It's amazing to me that anyone would spare their free time to code review strangers' code. So thank you in advance. I'd ...
4
votes
0
answers
57
views
Fetching data from endpoint, retrieving coordinates, then merging into an output
I'm in no way a skilled developer (or even a developer at that!) but I did want to take a go at writing a script that fetched one endpoint's data, extracted some data, sent if off to be geocoded, then ...
4
votes
0
answers
169
views
HSL Guessing Game in Svelte
The objective of the game is to guess the hue, saturation, and lightness values of a given color swatch across ten rounds.
https://github.com/shreyasminocha/guess-the-hsl
https://guess-the-hsl.now.sh
...
4
votes
0
answers
345
views
JavaScript AVL Tree
I have been working through Introduction to Algorithms 3rd Edition, and have implemented an AVL tree through prototypal inheritance. The code presented here does work as expected based on the tests ...
4
votes
0
answers
347
views
Running a JavaScript program from C# with sandboxing
I am using EdgeJS in my application. The application is used to run a user-provided javascript program from C#. Because we allow execution of user scripts some sandboxing is required. I am using vm2 ...
4
votes
0
answers
414
views
MongoDB BulkWrite - create or update a sub document within an array
I have a series of Events (roughly 10-20 events that will be dynamically created per month):
Event Model:
...
4
votes
0
answers
891
views
Node JS | From Excel to Json
Intro -> I have to convert an excel file, which comes usually in this way:
to a Json file that must looks like this:
...
4
votes
0
answers
179
views
Node.js tool to update Cisco UCCX with CSV data
What this tool does update skills for agents on a Contact Center Cluster (Cisco UCCX). The tool reads a csv file called agents.csv from the current working directory. This file has a list of agents ...
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 ...
4
votes
0
answers
229
views
Get nearest driver from 2.5 millions of data using mongodb
I have created 2.5 millions drivers dummy data, in this case lets say the drivers are moving around in the city. The driver's document look like this :
...
4
votes
0
answers
2k
views
Mongoose schema for products and social media posts
Here is my current schema:
Brand:
...
4
votes
0
answers
327
views
Passport user authentication
I'm using Passport in Node.js app to authenticate user by email and password (login) and also by token.
Email and password are used only when user is logging in. Passport local strategy generates ...