A realtime group chat application server using Graphql and ES6 with JWT authentication.
- Node.js
- Mongoose
- Apollo Server
- JWT for Authentication
gql`
query MyQuery {
groups {
_id
name
}
messages {
_id
email
message
group {
_id
name
}
createdAt
}
}
mutation AddMessage {
addMessage(email: "test@gmail.com", message: "test", groupId: "5fc106e6aafc9352208576a8") {
_id
message
createdAt
}
}
subscription MySub {
messageAdded {
message
email
createdAt
}
}
query Login {
login(email: "test@gmail.com", password: "test123") {
token
}
}
`
- npm install/yarn
- npm run start/ yarn start
- npm run lint (see lint erros)
- npm run lint-fix (fix potentially fixable)
- Add unit/regression tests
- Add/Configure webpack for bundling
- Add logger
- Move constants to a seperare file
- Create model for user (save to db)