You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
of course, each time I run server.js again, it adds more to the db once it has been initially created. is there a command we could add like dropDB that would recreate the db, or is there something to test if it already exists so I don't repopulate it?
The text was updated successfully, but these errors were encountered:
That would certainly be helpful. One possibility is to check if the db file exists using the fs module but I agree that should be incorporated into servi.
I'm trying to do something like this:
https://github.com/lmccart/itp-networked-media/blob/master/week6/09_create_db/server.js
of course, each time I run server.js again, it adds more to the db once it has been initially created. is there a command we could add like dropDB that would recreate the db, or is there something to test if it already exists so I don't repopulate it?
The text was updated successfully, but these errors were encountered: