I'm building a taskmanagment application, where only admin can delete user. when admin delete a user, I want to assign deleted users task to the his assignby user.
{
_id: new ObjectId("63bad43ee5d01d4cc13d58b2"),
title: 'Test task',
completed:…
My aim is to get books from the database on specific condition but at the same time i want to get their count as well. Below is my code. Here i have implemented pagination so i using limit() and skip() to get only required data for that particular…
I am implementing a signup functionality using mobile OTP authentication in my MERN application.
Few questions I have related to this
Do I need to install npm package of third party who provided the sendOTP API or Can I call third party SendOTP API…
hello everyone I am aking a MERN project and Im running into a peobleme.
so Im using redux toolkit slice and when I try to dispatch the fetchProduct like so
import React, { useEffect, useState } from "react";
import "./products.css";
import {…
I have a controller edit card which updates the fields of cardsArray object.
cardsArray is mixed type object as fileds of each card object is different so i am storing mixed.type
Althought pushing new card using addCard controller works…
I am trying to build a nodejs api, I am wondring how to make it only accessible by my frontend application (MERN stack). Because others can see from the console in the frontend site the address of my backend appilcation built using nodejs
I tried…
I am setting up a MERN app that includes the BTCpay api but im not sure how to set it up. I got the response on how to do it but the first step was "Set up a BTCPay Server instance. You can either install BTCPay Server on your own server or use a…
This is my previous question. How can I properly use the res.sendFile for my MERN APP, I get an error every time I refresh it, it works there.
What happened here is the same thing, I still get an error when I refresh to a certain site even though I…
Is It possible for me to use the BTCpay server api within my MERN app to allow users to connect there wallets and create invoices and if say is there any tutorials or pages that I could read up on
I was just wondering where I should sanitize and validate my incoming data. Mongoose has some validation functions and combined with Validate.js I can do the validation there. But should I also do the sanitization there? Or is it better to do this…
I'm having issues setting a cookie in a react app, In development, it works but when I switch to production the cookie is not received by the browser. I'm using a node.js/express server.
The backend and frontend are both hosted on vercel.
This is…
I am making a a personal portfolio web page where I want to display my projects but I'm not sure how to make the GUI screen appear on a webpage. I built a little puzzle game on pygame for my 1st sem project n I'd like that to appear on my webpage as…
I am using Yup for form data validation along with Formik.
This is a yup schema for one of my react forms.
const values=['All','Subscribers']
export const newsLetterSchema = yup.object().shape({
audience: yup.string(),
subject:…
So i have a mern project. The dashboard page on my website is fetching "project" documents from the db and using the map() function displaying the data and an open project button. When a user presses on one of those "open project" buttons, i want to…
As i am new to mongodb, I am doing a project of pharmacy management system in node and mongoDB.
I want to make a table ROLE in which i only state id and ROLE attribute {can be admin, can be customer}, and a table of user -> having attributes {id,…