This is a multi-user blogging application with a GraphQL API powered by express server. Live Demo
- Single GraphQL endpoint
- Strong typed Models with proper relationships
- Clean type definition
- JWT Authentication
- Lightwight and mininal dependencies
- Error handling
- Easy to clone and reuse
login
Authentication
viewer
Currently logged in user
createAccount
Create a new account
updateAccount
Update user account
login
Feature | Type | Action |
---|---|---|
login |
Mutation |
Authentication |
viewer |
Query |
Get current logged in user |
createAccount |
Mutation |
Create a new account |
updateAccount |
Mutation |
Update user account |
updatePassword |
Mutation |
Change password |
deleteAccount |
Mutation |
Delete account |
Feature | Type | Action |
---|---|---|
getAllPosts |
Query |
Get all public/pushblished posts |
getMyPosts |
Query |
Get all posts by author |
getMyPostsById |
Query |
Get post by author ID |
createPost |
Mutation |
Create new post |
updatePost |
Mutation |
Update post |
deletePost |
Mutation |
Delete post |
- Download/clone project to your local directory
- Remember to create and add your environment variables to .env
npm install
npm run dev
# or
yarn
yarn dev
- Add more mutation and query types
- Add server side validation
- Others..