All Questions
3,925
questions
-1
votes
1
answer
19
views
Redis client initialization Issue in Node Js application
I have a simple backend application built with Node.js.
The directory structure as below
and this is GitHub Repository Link
here below is the code of server.js file
// server.js
const express = ...
0
votes
0
answers
24
views
User ID not found in UserDefaults or invalid UUID string
I am trying to display previously created events on my calendar page using a fetch events function. I have made an api that has a route to fetch events from my database. In my database, when an event ...
0
votes
0
answers
15
views
Test Fails after Establishing Connection to Database
I have a repo for a node app that uses an object to store the data temporarily. I updated the code to connect to MongoDB and some of the tests start failing.
The test is one with supertest.
The code ...
0
votes
0
answers
20
views
how to add authorizer for a aws serverless NodeJS application
I have created the nodejs rest api using serverless framework. The application is very similar to the below template. I have created a custom authentication as a separate service i want include that ...
0
votes
1
answer
30
views
React RichText not showing in html format?
I've used React Quill for RichText Editor. And also saved data as html format. The Response shows in the Api like below:
"education": "<ul><li>Bachelor of Science (BSc) in ...
-1
votes
0
answers
27
views
Workflow for creating a Movie Rating Backend in Express and Mongodb
I am given a task in placement training for backend, in that I have to create a backend api endpoints for a movie rating site, It should include
Signup users
Allows admin to add movies, genres, ...
1
vote
1
answer
39
views
Passing change event value through props from child component to parent in react typescript
I'm trying to pass data from child component to parent one through change event.
But I can't understand, basically both functions have the same structure.
The main components is getting bigger so I'm ...
0
votes
1
answer
62
views
How to use import in JavaScript while using Spring Boot
I ve been looking for a way to use import Chart from 'chart.js/auto' in my webpage. Im currently using Spring Boot, with Thymeleaf.
Problem is, none of the things I tried worked. I have a node_modules ...
1
vote
1
answer
43
views
error in rendering a RESTful comments in ejs
when working with ejs and render a file of comments contains username and comment it only renders the username and the comments is not rendering at all
index of comments
const comments = [
{
...
0
votes
1
answer
30
views
MVC issue,request not processing
index.js (main)
const express = require("express");
const app =express();
const {connectMongoose} = require("./connection.js");
connectMongoose("mongodb://localhost:27017/&...
0
votes
1
answer
139
views
How to send an AWS SES email in Lambda with aws-sdk v3 using the latest version of Node?
How can I validate a Google Recaptcha in AWS Lambda using NodeJS 20 and then send an email if successful with AWS SES? It is assumed the front-end facing form sends the Recaptcha response via the ...
0
votes
0
answers
48
views
Verification of hmac signature from headers
I'm implementing payment on my SaaS, I use LemonSqueezy and my API is made in TS with AdonisJS, here's my problem:
When a payment is validated LemonSqueezy calls the webhook of my API with a signature ...
0
votes
0
answers
27
views
ExpressJS Postman POST request body is undefined [duplicate]
I am using the light version of Postman 11.0.12 on a Windows 10 server.
My body values always returns undefined.
If I use Query Params then key returns the correct value.
I suspect could it be this ...
0
votes
0
answers
24
views
Where to use Date.now function for saving data to database
I have a REST API server with Express, connects to MongoDB. Basically my app accept an input form to save some reports daily and of course the timestamp has to be that current time.
My question is, ...
0
votes
1
answer
282
views
Using a Trino client with external authentication rather than BasicAuth
I am using Trino to communicate with OpenSky, which is a flight record (ADSB) historical database. I am a contributor to the OpenSky network and have approved credentials.
The OpenSky Quick Guide ...