All Questions
Tagged with replit-database node.js
6
questions
0
votes
0
answers
13
views
REplit + Node JS - How to override local file JSON data
My code snippet works with node js but my actual file “LOCAL_JSON_FILE_PATH” does not update with the new data. I want to remove old data from the file and import new data at set times.
My code works ...
0
votes
0
answers
15
views
How to save a variable to a database in three.js
I have made a simple game in three.js and want to be able to save a high score to a database, but anytime I try to use a database module, more specifically, the replit database, all of the three.js ...
0
votes
0
answers
14
views
Any way to get the text value of a key that's stored in the database? (replit node.js)
I kept trying to find a solution but couldn't find it anywhere, I'm using this for my discord bot and I want it to send the text value of a stored key in the database as a text message to discord.
How ...
0
votes
1
answer
90
views
how to initialize @replit/database out side of node.js
here is my file:
const express = require('express');
const path = require('path');
const app = express();
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'Basic-signupsignin-setup', ...
0
votes
0
answers
13
views
Why am I getting a "cannot set property of undefined" when writing to an array generated by a replit.db call? [duplicate]
This was marked duplicate for some reason. I didn't even know what the thing in the other post was called.
So, my problem is that this replitdb call below (not sure if thats what it's called) somehow ...
0
votes
1
answer
168
views
No REPLIT_DB_URL environment variable
When I try using the Replit database, I get told "Only absolute URLs are supported". Then I tried finding the REPLIT_DB_URL with 'printenv' in the shell. There was no variable with that name....