the-road-to-graphql / fullstack-apollo-express-postgresql-boilerplate

💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
https://roadtoreact.com
MIT License
1.2k stars 265 forks source link

mongo version #31

Closed rpweb closed 5 years ago

rpweb commented 5 years ago

i created a mongo version. https://github.com/rpweb/fullstack-apollo-react-express-boilerplate-project not finished, but everything works, except pagination. would be great if you can give me some feedback. thanks

rwieruch commented 5 years ago

Amazing @rpweb You should open source it once you have finished the pagination feature 💯 🥇

I couldn't look at everything, but here are two things I noticed:

After releasing the open source project, we could extend the tutorial with MongoDB if it doesn't differ too much from the original project. I would hope that only the resolvers, the seeding in the src/index.js and the models/ folder changes. Then it would be fairly straight forward to offer readers a substitution for chapters:

I can do it, you can do it as guest blog post, or you can do the substituted chapters on your own website too. As you wish.

Another idea: If the React client didn't change for you, it may be great to extract the client from both repositories and keep only the server part. Then I would introduce a separate repository for the React client and both server repositories could point to it.

One more idea: We could name the repositories fullstack-apollo-react-express-postgresql-boilerplate-project and fullstack-apollo-react-express-mongodb-boilerplate-project. If you want, you could join the organization as well and put the repository in here. But that's up to you :)

Nevertheless, well done so far! 🎉

rpweb commented 5 years ago

yes sure, spread it with everyone. here the latest final version with your latest changes as well: https://github.com/webstudios/fullstack-apollo-react-express-boilerplate-project as you can see on client side i did only some bug fixes in general. on server side the index changed slightly and of course mainly the loaders, models, resolvers and a little bit the schema due to the date. here a fix to display the correct date is needed. i added lint-staged and husky to package.json to avoid automated code formatting issues in the future. @priestor helped me alot and should be mentioned as well! it would be great if you can take care of the missing chapters. you are obviously the better author. you can decide which idea is best for everyone. i added you as a collaborator to the fork. thanks again for your tutorial!

rwieruch commented 5 years ago

Discussed over here: https://github.com/the-road-to-graphql/fullstack-apollo-express-postgresql-boilerplate/pull/33