All Questions
Tagged with replit-database javascript
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
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
0
answers
53
views
How do I import the database from Replit with "Import" in javascript?
Id like to use import to import the database. Is this possible?
import Database from "@replit/database"
This doesn't work
I tried that without "@" and with other variations, but ...
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....
-1
votes
1
answer
175
views
Count time between messages with discord.js and replit database
I've been googling for a long time now and can't find a solution.
My current code:
let end = new Date().getTime();
if(Msg == "test") {
// ...
}
db.set("start", new Date().getTime(...