diff --git a/README.md b/README.md index 6675b89..09d1eff 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ Installation is simple just run npm i ``` +If you do not have a local instance of mongoDB running then run `docker-compose up`. +Be sure to run the `db_migrations/init_collection.js` on your mongodb shell. + To run the server locally use ``` diff --git a/db_migrations/init_collections.js b/db_migrations/init_collections.js index 0a7ee5e..c76fd89 100644 --- a/db_migrations/init_collections.js +++ b/db_migrations/init_collections.js @@ -1,5 +1,5 @@ -use matilda; +use matilda db.sequences.insert({ '_id': 'task_id', 'nextIndex': 0 -}); \ No newline at end of file +}) \ No newline at end of file