Anyone Know how to use Repl.it Database Proxy?
For those who don't know, Repl.it Database is a database for your repls that is built into the project. However, the only method of sharing this data between repls is called "web hosting", where there is one database that stores everything. Can someone help me pick apart how to use this feature?
Database Proxy: https://repl.it/@util/Replit-Database-proxy
JacobRiojas
hjbbkbk
i think it needs to be hosted somewhere first
Could you [email protected]
@LAMAQDAHODWALA like for example you could host it on heroku.com. That would be a good option, since you can do your web hosting there.
So your saying, go to this site, and make the database there? I need the repl.it Database though. @RYANTADIPARTHI
@RYANTADIPARTHI The Repl.it Database is a local option, no need to set up extra hosting.
Do you know how to use the proxy? @SixBeeps
@LAMAQDAHODWALA You'll want to fork the Repl first so that it uses its own database.
From there, you'll just make HTTP requests to that Repl to interact with it. Attach a key name to the end of the url to get the value of a specific key ("some.url.com/keyname")
requests? HTTP?!? faints...thanks for the [email protected]
@LAMAQDAHODWALA Ah c'mon, HTTP ain't that bad!
@SixBeeps what about creating a key
@snekattack You'd just SET the value at the key name
Also, please avoid necroing and make a new Ask post if you have further questions.
@SixBeeps could you share the exact code you use to make the requests because I don't know lots about python.
@AdvayM I won't share any code since I rarely ever use Python for this kind of thing, but give the requests library manual a read.
Also, much like the comment above yours, please avoid necroing and make a new Ask post if you have further questions.