Ask coding questions

← Back to all posts
Replit Database
schoolonlinebee

Let's say I wanted to make a chatting website. How would I save the chats into replit database so when I restart the server, the chats will still be saved.

Voters
Maxb0tbeep
schoolonlinebee
Comments
hotnewtop
emilyDoesPascal

If you are using Python, Node.JS, Go/Golang, you can use replit db.

https://docs.replit.com/hosting/database-faq

ch1ck3n

use repl db

schoolonlinebee

@ch1ck3n Yeah but how would I save it?

ch1ck3n

@schoolonlinebee what language are yo using

schoolonlinebee

@ch1ck3n Javascript/ nodejs

ch1ck3n
schoolonlinebee

@ch1ck3n ty :D