You can easily run your own MongoDB server inside any CoCalc project to manage data (or just learn about NoSQL and databases).
Step 1: Startup¶
In a Linux Terminal (Files tab →
+ Create →
Terminal), paste this:
cd mkdir -p mongodb-data mongod --dbpath mongodb-data
~/mongodb-data will contain the data files.
It should greet you with
waiting for connections on port 27017 … which is where you have to point your client to (i.e.
Step 2: Connect¶
In a second terminal, maybe just split the one you already have, run this:
Step 3: Shutting Down¶
After you have finished working with MongoDB, send a term signal by pressing
Ctrl + c keys in the Terminal where MongoDB is running in order to prevent data loss.