├── .adonisrc.json ├── .editorconfig ├── .env.example ├── .env.testing ├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── .prettierignore ├── .prettierrc ├── README.md ├── ace ├── ace-manifest.json ├── app ├── Controllers │ ├── Http │ │ ├── ArticlesController.ts │ │ ├── CommentsController.ts │ │ ├── FavoritesController.ts │ │ ├── ProfilesController.ts │ │ ├── TagsController.ts │ │ └── UsersController.ts │ └── Mappers │ │ ├── ArticleMapper.ts │ │ ├── CommentMapper.ts │ │ └── ProfileMapper.ts ├── Exceptions │ └── Handler.ts ├── Middleware │ ├── Auth.ts │ └── SilentAuth.ts ├── Models │ ├── ApiToken.ts │ ├── Article.ts │ ├── Comment.ts │ ├── Tag.ts │ └── User.ts └── Validators │ ├── CreateArticleValidator.ts │ ├── CreateCommentValidator.ts │ ├── CreateUserValidator.ts │ ├── LoginValidator.ts │ ├── UpdateArticleValidator.ts │ └── UpdateUserValidator.ts ├── commands └── index.ts ├── config ├── app.ts ├── auth.ts ├── bodyparser.ts ├── cors.ts ├── database.ts ├── drive.ts └── hash.ts ├── contracts ├── auth.ts ├── bouncer.ts ├── drive.ts ├── env.ts ├── events.ts └── hash.ts ├── database ├── factories │ └── index.ts └── migrations │ ├── 1637527469388_users.ts │ ├── 1637527469394_api_tokens.ts │ ├── 1646166105804_follows.ts │ ├── 1646415726856_articles.ts │ ├── 1646416106994_tags.ts │ ├── 1646416539562_articles_tags.ts │ ├── 1647805071327_favorites.ts │ └── 1648599595048_comments.ts ├── env.ts ├── favicon.ico ├── japaFile.ts ├── logo.png ├── package.json ├── providers └── AppProvider.ts ├── server.ts ├── start ├── bouncer.ts ├── events.ts ├── kernel.ts └── routes.ts ├── test ├── article │ ├── create-articles.spec.ts │ ├── delete-article.spec.ts │ ├── feed-articles.spec.ts │ ├── get-article.spec.ts │ ├── list-articles.spec.ts │ └── update-article.spec.ts ├── auth.ts ├── comments.spec.ts ├── favorite.spec.ts ├── profiles.spec.ts ├── tags.spec.ts └── users.spec.ts ├── tsconfig.json └── yarn.lock /.adonisrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/.adonisrc.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/.env.example -------------------------------------------------------------------------------- /.env.testing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/.env.testing -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | coverage 4 | .vscode 5 | .DS_STORE 6 | .env 7 | tmp 8 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/README.md -------------------------------------------------------------------------------- /ace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/ace -------------------------------------------------------------------------------- /ace-manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/ace-manifest.json -------------------------------------------------------------------------------- /app/Controllers/Http/ArticlesController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Http/ArticlesController.ts -------------------------------------------------------------------------------- /app/Controllers/Http/CommentsController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Http/CommentsController.ts -------------------------------------------------------------------------------- /app/Controllers/Http/FavoritesController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Http/FavoritesController.ts -------------------------------------------------------------------------------- /app/Controllers/Http/ProfilesController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Http/ProfilesController.ts -------------------------------------------------------------------------------- /app/Controllers/Http/TagsController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Http/TagsController.ts -------------------------------------------------------------------------------- /app/Controllers/Http/UsersController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Http/UsersController.ts -------------------------------------------------------------------------------- /app/Controllers/Mappers/ArticleMapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Mappers/ArticleMapper.ts -------------------------------------------------------------------------------- /app/Controllers/Mappers/CommentMapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Mappers/CommentMapper.ts -------------------------------------------------------------------------------- /app/Controllers/Mappers/ProfileMapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Controllers/Mappers/ProfileMapper.ts -------------------------------------------------------------------------------- /app/Exceptions/Handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Exceptions/Handler.ts -------------------------------------------------------------------------------- /app/Middleware/Auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Middleware/Auth.ts -------------------------------------------------------------------------------- /app/Middleware/SilentAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Middleware/SilentAuth.ts -------------------------------------------------------------------------------- /app/Models/ApiToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Models/ApiToken.ts -------------------------------------------------------------------------------- /app/Models/Article.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Models/Article.ts -------------------------------------------------------------------------------- /app/Models/Comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Models/Comment.ts -------------------------------------------------------------------------------- /app/Models/Tag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Models/Tag.ts -------------------------------------------------------------------------------- /app/Models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Models/User.ts -------------------------------------------------------------------------------- /app/Validators/CreateArticleValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Validators/CreateArticleValidator.ts -------------------------------------------------------------------------------- /app/Validators/CreateCommentValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Validators/CreateCommentValidator.ts -------------------------------------------------------------------------------- /app/Validators/CreateUserValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Validators/CreateUserValidator.ts -------------------------------------------------------------------------------- /app/Validators/LoginValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Validators/LoginValidator.ts -------------------------------------------------------------------------------- /app/Validators/UpdateArticleValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Validators/UpdateArticleValidator.ts -------------------------------------------------------------------------------- /app/Validators/UpdateUserValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/app/Validators/UpdateUserValidator.ts -------------------------------------------------------------------------------- /commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/commands/index.ts -------------------------------------------------------------------------------- /config/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/config/app.ts -------------------------------------------------------------------------------- /config/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/config/auth.ts -------------------------------------------------------------------------------- /config/bodyparser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/config/bodyparser.ts -------------------------------------------------------------------------------- /config/cors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/config/cors.ts -------------------------------------------------------------------------------- /config/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/config/database.ts -------------------------------------------------------------------------------- /config/drive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/config/drive.ts -------------------------------------------------------------------------------- /config/hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/config/hash.ts -------------------------------------------------------------------------------- /contracts/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/contracts/auth.ts -------------------------------------------------------------------------------- /contracts/bouncer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/contracts/bouncer.ts -------------------------------------------------------------------------------- /contracts/drive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/contracts/drive.ts -------------------------------------------------------------------------------- /contracts/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/contracts/env.ts -------------------------------------------------------------------------------- /contracts/events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/contracts/events.ts -------------------------------------------------------------------------------- /contracts/hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/contracts/hash.ts -------------------------------------------------------------------------------- /database/factories/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/factories/index.ts -------------------------------------------------------------------------------- /database/migrations/1637527469388_users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1637527469388_users.ts -------------------------------------------------------------------------------- /database/migrations/1637527469394_api_tokens.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1637527469394_api_tokens.ts -------------------------------------------------------------------------------- /database/migrations/1646166105804_follows.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1646166105804_follows.ts -------------------------------------------------------------------------------- /database/migrations/1646415726856_articles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1646415726856_articles.ts -------------------------------------------------------------------------------- /database/migrations/1646416106994_tags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1646416106994_tags.ts -------------------------------------------------------------------------------- /database/migrations/1646416539562_articles_tags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1646416539562_articles_tags.ts -------------------------------------------------------------------------------- /database/migrations/1647805071327_favorites.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1647805071327_favorites.ts -------------------------------------------------------------------------------- /database/migrations/1648599595048_comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/database/migrations/1648599595048_comments.ts -------------------------------------------------------------------------------- /env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/env.ts -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/favicon.ico -------------------------------------------------------------------------------- /japaFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/japaFile.ts -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/package.json -------------------------------------------------------------------------------- /providers/AppProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/providers/AppProvider.ts -------------------------------------------------------------------------------- /server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/server.ts -------------------------------------------------------------------------------- /start/bouncer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/start/bouncer.ts -------------------------------------------------------------------------------- /start/events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/start/events.ts -------------------------------------------------------------------------------- /start/kernel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/start/kernel.ts -------------------------------------------------------------------------------- /start/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/start/routes.ts -------------------------------------------------------------------------------- /test/article/create-articles.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/article/create-articles.spec.ts -------------------------------------------------------------------------------- /test/article/delete-article.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/article/delete-article.spec.ts -------------------------------------------------------------------------------- /test/article/feed-articles.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/article/feed-articles.spec.ts -------------------------------------------------------------------------------- /test/article/get-article.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/article/get-article.spec.ts -------------------------------------------------------------------------------- /test/article/list-articles.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/article/list-articles.spec.ts -------------------------------------------------------------------------------- /test/article/update-article.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/article/update-article.spec.ts -------------------------------------------------------------------------------- /test/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/auth.ts -------------------------------------------------------------------------------- /test/comments.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/comments.spec.ts -------------------------------------------------------------------------------- /test/favorite.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/favorite.spec.ts -------------------------------------------------------------------------------- /test/profiles.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/profiles.spec.ts -------------------------------------------------------------------------------- /test/tags.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/tags.spec.ts -------------------------------------------------------------------------------- /test/users.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/test/users.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/giuliana-bezerra/adonisjs-tdd-typescript-example-app/HEAD/yarn.lock --------------------------------------------------------------------------------