├── .gitignore ├── LICENSE ├── README.md ├── backend.png ├── package.json ├── packages ├── graphql │ ├── .babelrc │ ├── .env.example │ ├── .gitignore │ ├── .vscode │ │ └── settings.json │ ├── package.json │ ├── src │ │ ├── __test__ │ │ │ └── index.test.ts │ │ ├── auth.ts │ │ ├── database.ts │ │ ├── index.ts │ │ ├── model │ │ │ ├── article.ts │ │ │ ├── comment.ts │ │ │ └── users.ts │ │ ├── modules │ │ │ ├── helper │ │ │ │ ├── GetRandom.ts │ │ │ │ ├── GetSlug.ts │ │ │ │ └── Slugify.ts │ │ │ └── main │ │ │ │ ├── ArticleType.ts │ │ │ │ ├── CommentType.ts │ │ │ │ └── mutation │ │ │ │ ├── article │ │ │ │ ├── createArticleMutation.ts │ │ │ │ ├── deleteArticleMutation.ts │ │ │ │ └── updateArticleMutation.ts │ │ │ │ ├── comment │ │ │ │ ├── createCommentMutation.ts │ │ │ │ ├── deleteCommentMutation.ts │ │ │ │ └── updateCommentMutation.ts │ │ │ │ ├── index.ts │ │ │ │ └── user │ │ │ │ ├── createUserMutation.ts │ │ │ │ └── loginUserMutation.ts │ │ ├── schema.ts │ │ ├── server.ts │ │ └── type │ │ │ ├── MutationType.ts │ │ │ └── QueryType.ts │ ├── tsconfig.json │ └── tslint.json └── rest │ ├── .babelrc │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── app.js │ ├── auth.js │ ├── controllers │ │ ├── articles │ │ │ └── index.js │ │ ├── comments │ │ │ └── index.js │ │ └── users │ │ │ └── index.js │ ├── database.js │ ├── helper │ │ ├── GetRandom.js │ │ ├── GetSlug.js │ │ └── Slugify.js │ ├── index.js │ ├── middleware │ │ └── errorHandling.js │ ├── models │ │ ├── article.js │ │ ├── comment.js │ │ └── users.js │ └── routes │ │ └── blog.js │ └── test.js └── yarn-error.log /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | yarn.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/README.md -------------------------------------------------------------------------------- /backend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/backend.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/package.json -------------------------------------------------------------------------------- /packages/graphql/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/.babelrc -------------------------------------------------------------------------------- /packages/graphql/.env.example: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/graphql/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | package-lock.json -------------------------------------------------------------------------------- /packages/graphql/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/.vscode/settings.json -------------------------------------------------------------------------------- /packages/graphql/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/package.json -------------------------------------------------------------------------------- /packages/graphql/src/__test__/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/__test__/index.test.ts -------------------------------------------------------------------------------- /packages/graphql/src/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/auth.ts -------------------------------------------------------------------------------- /packages/graphql/src/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/database.ts -------------------------------------------------------------------------------- /packages/graphql/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/index.ts -------------------------------------------------------------------------------- /packages/graphql/src/model/article.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/model/article.ts -------------------------------------------------------------------------------- /packages/graphql/src/model/comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/model/comment.ts -------------------------------------------------------------------------------- /packages/graphql/src/model/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/model/users.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/helper/GetRandom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/helper/GetRandom.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/helper/GetSlug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/helper/GetSlug.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/helper/Slugify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/helper/Slugify.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/ArticleType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/ArticleType.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/CommentType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/CommentType.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/article/createArticleMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/article/createArticleMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/article/deleteArticleMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/article/deleteArticleMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/article/updateArticleMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/article/updateArticleMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/comment/createCommentMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/comment/createCommentMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/comment/deleteCommentMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/comment/deleteCommentMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/comment/updateCommentMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/comment/updateCommentMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/index.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/user/createUserMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/user/createUserMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/modules/main/mutation/user/loginUserMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/modules/main/mutation/user/loginUserMutation.ts -------------------------------------------------------------------------------- /packages/graphql/src/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/schema.ts -------------------------------------------------------------------------------- /packages/graphql/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/server.ts -------------------------------------------------------------------------------- /packages/graphql/src/type/MutationType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/type/MutationType.ts -------------------------------------------------------------------------------- /packages/graphql/src/type/QueryType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/src/type/QueryType.ts -------------------------------------------------------------------------------- /packages/graphql/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/tsconfig.json -------------------------------------------------------------------------------- /packages/graphql/tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/graphql/tslint.json -------------------------------------------------------------------------------- /packages/rest/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/.babelrc -------------------------------------------------------------------------------- /packages/rest/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/.gitignore -------------------------------------------------------------------------------- /packages/rest/README.md: -------------------------------------------------------------------------------- 1 | # koa-crud 2 | 🗃️ A simple CRUD using Koa.js 3 | -------------------------------------------------------------------------------- /packages/rest/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/package-lock.json -------------------------------------------------------------------------------- /packages/rest/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/package.json -------------------------------------------------------------------------------- /packages/rest/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/app.js -------------------------------------------------------------------------------- /packages/rest/src/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/auth.js -------------------------------------------------------------------------------- /packages/rest/src/controllers/articles/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/controllers/articles/index.js -------------------------------------------------------------------------------- /packages/rest/src/controllers/comments/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/controllers/comments/index.js -------------------------------------------------------------------------------- /packages/rest/src/controllers/users/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/controllers/users/index.js -------------------------------------------------------------------------------- /packages/rest/src/database.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/database.js -------------------------------------------------------------------------------- /packages/rest/src/helper/GetRandom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/helper/GetRandom.js -------------------------------------------------------------------------------- /packages/rest/src/helper/GetSlug.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/helper/GetSlug.js -------------------------------------------------------------------------------- /packages/rest/src/helper/Slugify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/helper/Slugify.js -------------------------------------------------------------------------------- /packages/rest/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/index.js -------------------------------------------------------------------------------- /packages/rest/src/middleware/errorHandling.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/middleware/errorHandling.js -------------------------------------------------------------------------------- /packages/rest/src/models/article.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/models/article.js -------------------------------------------------------------------------------- /packages/rest/src/models/comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/models/comment.js -------------------------------------------------------------------------------- /packages/rest/src/models/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/models/users.js -------------------------------------------------------------------------------- /packages/rest/src/routes/blog.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/packages/rest/src/routes/blog.js -------------------------------------------------------------------------------- /packages/rest/test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /yarn-error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wellers0n/Backend-diff/HEAD/yarn-error.log --------------------------------------------------------------------------------