Nodejs: pass variable from url to other files and update mongodb
Budget: €8 – €30 EUR
Nodejs: pass variable from url to other files and update mongodb
An example URL in the browser: https://www.thistestdomaindoesnotexist.com/?wmid=232416
I want to pass one variable from a url string to other files inside the script
and later when user signup on register-form.tsx, the variable should be written
into the mongodb collection users.
My idea:
yarn add express
yarn add cors
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('wmid: ' + req.query.wmid);
});
For adding the value in mongodb some backend files must be changed.
(I added some backend api files)
Frontend files:
The first site that is opened:
login-form.tsx
User can click registration and goes to:
register-form.tsx
So the variable should pass the first site and on register-form.tsx there is a user registration form
and the value wmid must be written to the mongodb.
//I can yarn build and test it: db["users"].find()
Should be an easy task for nodejs developer.
Price Euro 15
An example URL in the browser: https://www.thistestdomaindoesnotexist.com/?wmid=232416
I want to pass one variable from a url string to other files inside the script
and later when user signup on register-form.tsx, the variable should be written
into the mongodb collection users.
My idea:
yarn add express
yarn add cors
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('wmid: ' + req.query.wmid);
});
For adding the value in mongodb some backend files must be changed.
(I added some backend api files)
Frontend files:
The first site that is opened:
login-form.tsx
User can click registration and goes to:
register-form.tsx
So the variable should pass the first site and on register-form.tsx there is a user registration form
and the value wmid must be written to the mongodb.
//I can yarn build and test it: db["users"].find()
Should be an easy task for nodejs developer.
Price Euro 15