DEV Community

Discussion on: MERNG PROJECT... I NEED HELP!! IM SICK OF THE ERRORS!!!!

Collapse
 
valeriavg profile image
Valeria • Edited

I have two suggestions, one of them is a bit controversial.

First one.
Try to do it one thing at a time. Start with http server that returns something. For example, install Apollo server in a new project and make a query that returns a string. Once this is out of the way, create a query that returns something from MongoDB. Bit of advice: don't use mongoose and go with a native driver instead. Once you've figured that part, create a React app and try rendering something. And at last, once this is working, try connecting React app with your server.

Second, controversial approach.

Try doing the same thing but with the minimum amount of packages. Limit it to e.g. React, graphql and mongo driver. Write the rest yourself. While it's the longest road, this will give you an idea on what actually is going on in your code.

Good luck!