So I’ve posted a few times in the gitter backend help and folks there are very supportive and helpful, but I feel like I need something I can have easier access to reference and get some ideas/ tips from folks.
I have done all the microservice APIs in node, and those went pretty well. I’m happy with what I’ve learned.
Now working on the voting app. I took my microAPI skeleton app, did a tutorial on authenticaiton and now have this really basic app where I can login using local/google/facebook, etc and look at my profile page.
So that’s kind of cool but it doesn’t “do” anything.
I found another tutorial on mongoose and started creating a poll model with title, options, owner, created date etc. But now I have no idea what to DO with thsi mdoel.
Where do I put code that “runs”? Do I need a front end connected before I can test hte backend? (I know the answer is “no”) but I think my brain must be friend since I’m having a really hard time figuring out how to do this in a simple, sequential, testable way.
I figured making a poll should be easy enough, but where do I run code that makes a pool? How do I do that without a front end in place? Do I need to create dummy objects so that I don’t have to add stuff with a front end first?
Or should I make a front end and add objects to the database first so that there are then polls/ users to access in the api?
How did others approach this problem?