Skip to content

Commit

Permalink
Excise mentions of MongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
hobinjk-ptc committed Jan 29, 2024
1 parent 6120fb3 commit 21cad2f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 439 deletions.
7 changes: 0 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ const fork = require('child_process').fork;
const path = require('path');
const argv = require('process').argv;

// const mdb = require('./persistence/MongoDBWrapper.js');
const fsProm = require('./persistence/FileSystemWrapper.js');

const {synchronize} = require('./persistence/walkers.js');
const {objectsPath} = require('./config.js');

const program = path.resolve('server.js');
const options = {
stdio: ['inherit', 'inherit', 'inherit', 'ipc']
Expand All @@ -18,7 +12,6 @@ const options = {
let child = null;

async function startNewChild() {
// await synchronize(mdb, fsProm, objectsPath);
child = fork(program, argv, options);
child.on('message', onChildMessage);
child.on('exit', onChildCrash);
Expand Down
220 changes: 4 additions & 216 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"ml-matrix": "^6.11.0",
"module-alias": "^2.2.3",
"monaco-editor": "^0.45.0",
"mongodb": "^6.1.0",
"network-interfaces": "^1.1.0",
"node-fetch": "^2.7.0",
"node-persist": "^2.1.0",
Expand Down
8 changes: 2 additions & 6 deletions persistence/CloudProxyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ const fetch = require('node-fetch');
const FormData = require('form-data');

/**
* {
* path: string,
* contents: Buffer? (hopefully it works),
* isDirectory: haaah,
* }
* Should have user id which is somehow a scope for mongo
* Implements a slice of the fs/promises API required to synchronize local
* files with a cloud backup
*/
class CloudProxyWrapper {
connect() {
Expand Down
Loading

0 comments on commit 21cad2f

Please sign in to comment.