Coding-Coach / coding-coach-api

62 stars 39 forks source link

Rewrote User Model, Schema and Resolver #20

Closed gibsonhan closed 6 years ago

gibsonhan commented 6 years ago

Wasn't too smart on the first one. Coded without a dev server active. It builds now. Aside from that I have set Date fields in GraphQl to value of String. Will resolve this when I get the chance. Working build. Have yet to remove dummy data in graphql

gibsonhan commented 6 years ago

@charlesjliu @jagzviruz , I summon thee for thou code review

gibsonhan commented 6 years ago

How exactly do we connect it to the mongo? do we have an url for an actual db?

jagzviruz commented 6 years ago

How exactly do we connect it to the mongo? do we have an url for an actual db?

Setting up mongo inside the docker container can be one way to go. Otherwise, you can assume the developer machine has a local instance of mongo installed. Update the README.md accordingly.

You can use a .env file to configure these settings, and add a sample .env.sample file.

charlesjliu commented 6 years ago

@gibsonhan as @jagzviruz pointed out, you can spin up mongo in a docker container. it's specified in our docker-compose.yml. I think running docker-compose start mongo should work.