Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Docker container mongoDB #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Added Docker container mongoDB #11

wants to merge 6 commits into from

Conversation

natac13
Copy link

@natac13 natac13 commented Aug 15, 2019

Changed the db:start command to launch a docker mongodb and import the user.json file.

This branch is based off #10 so it could be merged after those changes if you wish.

I was just exploring other options for a solution to #5 and thought I would share the setup here.

This involved upgrading Jest, therfore Babel and all the dep and dev deps.

Created the setup files for the mongodb server for tetsing.

Using Mongoose to interact with the DB.

Have got all the test back passing.
Added a new test for this as well.
Happens when querying on an array of _id that are to resolve to other docs
db:start Will launch a mongo instance and import the test/user.json file

up on port 27017 so my conflict with other running mongod

Added a command tho npm to gen the user.json file from the user.js file to keep in sync.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant