Skip to main content

All Questions

Tagged with
4 votes
1 answer
735 views

Access token regeneration for Axios requests

Description I've developed an application which use axios to communicate with the PayPal API. PayPal has a NodeJS SDK, but unfortunately this doesn't support the ...
sfarzoso's user avatar
  • 117
5 votes
1 answer
96 views

Searching all new Reddit comments for comments matching regular expressions and notify of matches

This program constantly sends an https request to Reddit's API for new comments. Using a PostgreSQL Database containing Regular Expressions, find comments of interest and notify about them using faye....
dustytrash's user avatar
  • 2,436
2 votes
1 answer
56 views

Express Rest API Async and Scaling

I am currently learning how to create nodejs express rest api using async making it fully scaleable and secure. My goal is to ensure maximum functionality and speed, currently I am using MVC ...
Jojo Bagings's user avatar
2 votes
0 answers
40 views

Splitting environments: prod and dev modes

I've decided on splitting my environments keeping them in .js files in an environment folder and keep all the sensitive information in .env file (use a third-party module 'DOTENV'). That's what I've ...
Valary o's user avatar
  • 171
6 votes
1 answer
611 views

nodejs 401 request retry mechanism

I'm working on a project in which I have a backend in nodejs and from there I need to call external APIs, those APIs require authentication token which is valid for 15 minutes. So if response status ...
Abhay Sehgal's user avatar
0 votes
1 answer
340 views

Nodejs Interview - API calls and exchange rate

I did an initial technical phone screening with this company which went ok, they then sent me a programming exercise to complete and send back to them. The goal of the exercise: -take input as a ...
carrots's user avatar
  • 101
6 votes
1 answer
92 views

Filter by multiple options - also only if not empty [closed]

Here's how my json looks like. I'm trying to write a function which filters based on participantCriteria.criteriaType & participantCriteria._id ...
Ajay Kumar Ganesh's user avatar
1 vote
1 answer
102 views

Avoid existSync function on Node.js - Express API controller

I have many json files that I want to serve through an API. The json files look something like this: ...
MauricioRobayo's user avatar
4 votes
1 answer
2k views

Node.js/Express middleware to relay requests to various APIs

I am creating a nodejs middleware server that will handle api transactions from a frontend and relay them to various api's (internal and external). The primary goal is to hide api keys from the ...
Joe Riggs's user avatar
0 votes
1 answer
90 views

Translating words from one language to another

My program translates words from one language to another using a language Pivot and systran.io API. I used promises, callbacks and external API for the first time but I'm not sure that's the best way ...
Hamza's user avatar
  • 1
1 vote
1 answer
105 views

Simple static JSON - get only - API

This API's aim is to return color-names for a bunch of hex colors. Its the first time I am writing an API. And while I write lots of frontend code I rarely touched node. I am interested in a general ...
meo's user avatar
  • 148
2 votes
1 answer
449 views

Beginner Node.js app using Heroku w/ Mailchimp API

I'd like some feedback on the readability and style of the following code. It's a simple Node.js app that uses the Mailchimp API to add emails to a list. The client side handles SVGs, sign-up ...
leerob's user avatar
  • 237
3 votes
1 answer
121 views

API Implementation and Architecture

I recently put together an Express/Node API that consumes and transforms an additional third party API. And while everything is working great, I feel there may be ways to improve the architecture ...
AnchovyLegend's user avatar
1 vote
1 answer
298 views

Fetching and shortening URLs with API calls using Promises

I have a node module that accesses the News API to fetch news articles and runs each article's URL through Google's URL shortener. It also has a caching mechanism implemented. This was previously ...
omgimanerd's user avatar
  • 1,135
3 votes
1 answer
149 views

A UNIX timestamp microservice

I have made a small timestamp microservice that converts from UNIX time to a natural language date, and vice versa. Please let me know of anything I could do better. Here is a demo. Here is the time....
Dream_Cap's user avatar
  • 641

15 30 50 per page