Does repl.it have database integration (mongo)?
binaryspike (2)

I'm working on an API wrapper and want to save into MongoDB to test my workflow. Does repl.it have database implementations?

It would be convenient if I every time my app ran, it had access to populate a database and then retrieve from the database.

You are viewing a single comment. View All
timmy_i_chen (960)

Repl.it can connect to external DB instances, including MongoDB. I use mlab for mine (free tier). Store username/password/uri in an .env file: https://repl.it/site/docs/secret-keys

scottstornetta (1)

@timmy_i_chen I am a teacher in New Jersey, and would like to show my students in AP Comp Sci Principles a little bit about client server apps, once the AP exam is finished. They used javascript during the year, So I am trying to bring up a simple node-based client server demo with mongodb on the backend for basic CRUD operations. Can you provide a little more detail about how you integrate mlab into your repl?

on behalf of my 55 students in three classes, thank you.

timmy_i_chen (960)

@scottstornetta Mlab is actually getting shut down (they got bought out by mongodb). For your APCSP kids it would probably be easier to use something like JSONstore. I'll whip up a node example in a sec.

timmy_i_chen (960)

@scottstornetta Here's a simple jsonstore.io example! Let me know if you have any questions about the code: https://repl.it/@timmy_i_chen/jsonstoreio-example

werfo (0)

@timmy_i_chen can you give a link to python project with Mlab integration for using it as example? Thank you