Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-usability of code and the lack of context switching.
Hi again wonderful helpers,
My Smartsheet and node.js world is expanding :-), but now something I don't know how to approach. I have a flat structured smartsheet with around 1000 rows and I need to ...
By simple, I really meant simple. I'm not working with express or react or anything like that, I just have a script that does some runs some simple API requests and uses a database to store some ...
La cosa es que tengo un arduino, el cuál NodeJS recibe su información y esta con socket.io los envia a otro NodeJS que teno alojado en el servidor Heroku, pero no logro recibir esos datos de este ...
I am starting a project and a little confused on how to get started
The chrome extension will have a login page, which can only be signed if someone created an account on the website.
once signed ...
Roles are employee and admin. i have created api that is generating token now i want to add roles on login means if employee logged in he should be directed towards respective pages and admin should ...
Inside one of my next.js api route,
For example: pages/api/example.js
I have the following simple code.
Then, inside this route, I have post request to a server.
export default async function example(...
asked 2 hours ago
Yunhai
89811 gold badge66 silver badges1414 bronze badges
I have an alert in tradingview that send a webhook with a request to my server with a plain body that has some info. the webhook sends PLAIN TEXT, It doecnt sends JSON data.
I was wondering if there ...
I am using Electron to build a desktop app. At UI, I built a file input component. After people upload their file. I want to move the file to the designated location. My way to move the file is to ...
I am trying to make a scraper for a website, but when I scrape the site, request doesn't give the page time to load the items. Is there any way of delaying the data capture of request? I can't seem to ...
export default function RegistrationForm() {
useEffect(() => {
const getAPI = () => {
const API = 'http://127.0.0.1:5000/';
fetch(API)
.then((...
I am trying authenticate a user. I am using context api to manage my states. I want to use the authentication to specify protected routes, in a bid to do that, i am making use of ComposedComponent. ...
i have this sql query:
var userLogin = "select * from login where USERNAME = ?";
the problem is, some of the usernames are testDummy123@gmail.com, but users may enter it as testdummy123@...
asked 4 hours ago
Gianluca
63211 silver badge99 bronze badges
i got a npm stuck when install npm, i have try to see with the --verbose, and it happen in fetch POST 400 enter image description here
This works
var NodeTransformerClass = Java.type('com.fispan.crypto.api.java.NodeTransformer');
var nodeTransformer = new NodeTransformerClass();
var result = nodeTransformer.protect(customer, ...
I've just developed a bot for adding roles to a user who starts streaming on my server. When I tested the bot on a isolated server with only a few channels and users the bot responded instantly. But ...
asked 5 hours ago
Logic1
1,6182424 silver badges3737 bronze badges
I am trying to deploy in heroku, I am not using react. I get the error as Cannot get /index.html.
I have a server folder with index.js,package.json and other js files. And a public folder with html ...
I've trying to parse a multipart/mixed response with (1) JSON and (2) .zip file.
I've been using Axios to GET the response, no problem there. I've seen npm packages like meros and multipart-mixed-...
const addUSDCurrencyToCreatorPage = async () => {
try {
const page = await Pages.find({ username });
console.log("page --", page);
page.currency = "USD";
await ...
I've recently updated the Node.js installed in my machine with nvm install --lts and my ZSH terminal now shows:
~ via ⬢ v14.17.3
how can I clean this "prompt" pwd message?
It's constantly ...
I am building a Node.js app and I need a KEY-VALUE DB that stores its data online. I have already tried thisdb and kvdb.io. I also don't want my data to expire after a month. Is there another option ...
I'm attempting to use Fetch in a chrome extension to make requests to other domains, in these requests I need to access the "set-cookie" header. I wrote up some code in Node.js which is able ...
Good day everyone, I'm doing a personal project but at the moment of using:
import {NgForm} from '@ angular / forms';
The error appears, I've tried the command of "npm ci" and then re-...
After globally install Typescript, npx create-react-app is not working. I have tried with --force, or --legacy-peer-deps but still its not working.
Here is the error
I've a collection for user given below
{
"_id": 1
"firstname": "John"
"lastname": "Doe"
"address": {
"street": "...
First of all, I'm not sure I've set this up as it should be, like by the book. I'm from the SQL world and jumped into the NOSQL land.
Ok, so. I have this collection with Projects, and inside the ...
asked 7 hours ago
Tobias
19911 gold badge11 silver badge1111 bronze badges
I have what I think might be a unique question (I certainly cannot google an answer for it).
My organization is using passport.js to authenticate invocations of our lambda function before that lambda ...
New to ES6 here. I have a function declared "inside" a constant:
const requestData = https.request(source, function (res) {
...
<function code>
...
});
I need to re-run this ...
asked 7 hours ago
rod
8711 silver badge88 bronze badges
I am developing an ecommerce application, and one major feature is that this app should have multiple themes. The total number of themes could be 100 or even more. However, these themes all have the ...
asked 7 hours ago
Jack Sun
1,4121313 silver badges1616 bronze badges
im building a simple notes App using express and mongoDB, i got this kind of bug where i cant update the description of the Notes, just the title, this the form from where im getting the data
<div ...
I am trying to display mysql data to a table using nodejs and reactjs. For some reasom I keep the folowing error:
Error: Objects are not valid as a React child (found: object with keys {type, data}). ...
I am trying to use the HDFS kafka connector to send protobuf messages from kafka to the HDFS. My connector config looks like the following
{
"name": "hdfs3-connector-test",
...
asked 8 hours ago
nick2225
19711 silver badge77 bronze badges
I created a new Angular project. Project name is "PaymentApp". After "ng serve" it starts running but showing lots of errors.
On chrome, it's showing "Cannot GET /" ...
if i open the localhost, my html loads but not the dependencies like my css and the frame sources. How can i fix it. I searched for it but i could not find anything that worked for me.
and the nvs ...
This is the link of the project: https://github.com/rtavares00/gulp
I added the following line in gulpfile.js :
gulp.task('fileinclude', function() {
gulp.src(['html/layout1/*.html'])
.pipe(...
I am trying to get data from mongoDB but the unwanted data are coming at the top , it is not in the order as i have added in the Mongoose schema .
Category schema :
const mongoose = require('mongoose')...
asked 8 hours ago
Dhiru
2,82211 gold badge2222 silver badges6262 bronze badges
I am trying to run Nodejs web-socket using Nginx proxy server both are on different machine nginx is on public IP and websocket is on local machine and can be accessible via DNS name but it is not ...
I want my users to have a phone OR an email (at least one of them) that's why I used these options for phone and email in my schema:
const schema = new Schema({
phone: { type: String, unique: ...
asked 8 hours ago
Sara Ree
2,73844 silver badges2323 bronze badges
I am making a react app with node as backend. They communicate using socket-io. The problem I am having an issue where react does and emit to send data to node, but does it twice, thereby making a ...
I am trying to condense a potentially large switch case into a simple expression in nodejs. This is what I current have
exports.ManagerRequest = functions.https.onCall(async (data, context) => {...
asked 9 hours ago
e.iluf
1,16922 gold badges1818 silver badges3434 bronze badges
{{>partialname}}
How do I get "partialname" above?
I can get the layout file name and the root template name, but this method which uses exposed variables by the register helpers does ...
asked 9 hours ago
JonoD
2111 silver badge66 bronze badges
these are my schemas and the
queries are: (list's id and a question topic)
questionSchema is nested inside the listSchema.
const questionSchema = new mongoose.Schema({
topic: { type : String , ...
I have been trying to show a value from CoinMarketCap API without success.
{
status: {
timestamp: '2021-07-23T15:48:49.204Z',
error_code: 0,
error_message: null,
elapsed: 26,
...
I am trying to deploy a PERN app to Heroku. I created a Heroku Postgres database and deployed my React frontend - Node/Express backend app to Heroku.
How do I connect to the database from within my ...
Context: I'm working on a Web App with Express Backend (Express & SQLite as Database)
Problem: If i make an API Call to Update some Rows in the Database, it (seems) to be working. If i query it, ...
I have an application running node.js in the backend and react.js at the front.
I have encountered a bug that happens when I log in as a admin, log out and immediately try to log back in as a customer ...
The header has work time, id, and answers. I'm trying to figure out what this is and how it is being generated.
These are the problems i faced with nextjs and material ui
I am getting this error, if i use props with makestyles
[enter image description here][1]
This is the error i am getting
[1]: https://i....
Out of curiosity I opened express package and inside there was module.exports....but still we can import with es6 syntax. But when it comes to modules that I export as commonjs module, and try to ...
index.js
var fs = require('fs');
var obj = JSON.parse(fs.readFileSync('/Users/amelie/Documents/project/config.json', 'utf8'));
I compile this file into an app called test-macOS using $pkg index.js . ...
I want to check whether user is logged in or not. If the user is not logged in I want to restrict the access. I've used express-rate-limit and setting the rate limit inside if statement but its not ...