DEV Community

Cover image for Here is what you need as a backend from 'graphql and nodejs with mongodb'(with JWT auth)
Chinmay Anand
Chinmay Anand

Posted on

Here is what you need as a backend from 'graphql and nodejs with mongodb'(with JWT auth)

hey, everyone!!! お久しぶりです。😎
i am writing after a long time, from now you will see some japanese also in my blogs.
well today i am giving you a very simple but strongly built backend with graphql, nodejs, express and mongodb.

i made a boilerplate so you can use it. the features i have added are following.

1. Create, read, delete a post with body, likes and comments.
2. store and delete comments
3. like and unlike a post
4. there is complete validation for user input
5. like duplicate email validation, duplicate
username validation
6. empty fields validation
7. a complete JWT authentication and authorization
8. a complete protected routes
9. likes and commetns counts too.

please have a look at code i am providing github link.
clone it use it make it more useable and if you have any thing new please let me know.

i will add some more things more precise validation and update feature for post and comments.
clone me from github and please don't forget to leave star

ご覧いただきありがとうございます。🙌
またね。see you again✌😎

Discussion (0)