├── .formatter.exs ├── .gitignore ├── LICENSE ├── README.md ├── config ├── config.exs ├── dev.exs ├── prod.exs ├── runtime.exs └── test.exs ├── lib ├── .DS_Store ├── real_deal_api.ex ├── real_deal_api │ ├── accounts.ex │ ├── accounts │ │ └── account.ex │ ├── application.ex │ ├── repo.ex │ ├── users.ex │ └── users │ │ └── user.ex ├── real_deal_api_web.ex └── real_deal_api_web │ ├── auth │ ├── authorized_plug.ex │ ├── error_response.ex │ ├── guardian.ex │ ├── guardian_error_handler.ex │ ├── pipeline.ex │ └── set_account.ex │ ├── controllers │ ├── account_controller.ex │ ├── default_controller.ex │ ├── fallback_controller.ex │ └── user_controller.ex │ ├── endpoint.ex │ ├── gettext.ex │ ├── router.ex │ ├── telemetry.ex │ └── views │ ├── account_view.ex │ ├── changeset_view.ex │ ├── error_helpers.ex │ ├── error_view.ex │ └── user_view.ex ├── mix.exs ├── mix.lock ├── priv ├── .DS_Store ├── gettext │ ├── en │ │ └── LC_MESSAGES │ │ │ └── errors.po │ └── errors.pot └── repo │ ├── migrations │ ├── .formatter.exs │ ├── 20221129192316_create_accounts.exs │ ├── 20221129192803_create_users.exs │ └── 20230131180245_guardiandb.exs │ └── seeds.exs └── test ├── real_deal_api ├── accounts_test.exs └── schema │ ├── account_test.exs │ └── user_test.exs ├── support ├── data_case.ex ├── factory.ex └── schema_case.ex └── test_helper.exs /.formatter.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/.formatter.exs -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/README.md -------------------------------------------------------------------------------- /config/config.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/config/config.exs -------------------------------------------------------------------------------- /config/dev.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/config/dev.exs -------------------------------------------------------------------------------- /config/prod.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/config/prod.exs -------------------------------------------------------------------------------- /config/runtime.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/config/runtime.exs -------------------------------------------------------------------------------- /config/test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/config/test.exs -------------------------------------------------------------------------------- /lib/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/.DS_Store -------------------------------------------------------------------------------- /lib/real_deal_api.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api.ex -------------------------------------------------------------------------------- /lib/real_deal_api/accounts.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api/accounts.ex -------------------------------------------------------------------------------- /lib/real_deal_api/accounts/account.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api/accounts/account.ex -------------------------------------------------------------------------------- /lib/real_deal_api/application.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api/application.ex -------------------------------------------------------------------------------- /lib/real_deal_api/repo.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api/repo.ex -------------------------------------------------------------------------------- /lib/real_deal_api/users.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api/users.ex -------------------------------------------------------------------------------- /lib/real_deal_api/users/user.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api/users/user.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/auth/authorized_plug.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/auth/authorized_plug.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/auth/error_response.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/auth/error_response.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/auth/guardian.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/auth/guardian.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/auth/guardian_error_handler.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/auth/guardian_error_handler.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/auth/pipeline.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/auth/pipeline.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/auth/set_account.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/auth/set_account.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/controllers/account_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/controllers/account_controller.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/controllers/default_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/controllers/default_controller.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/controllers/fallback_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/controllers/fallback_controller.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/controllers/user_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/controllers/user_controller.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/endpoint.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/endpoint.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/gettext.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/gettext.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/router.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/router.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/telemetry.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/telemetry.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/views/account_view.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/views/account_view.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/views/changeset_view.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/views/changeset_view.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/views/error_helpers.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/views/error_helpers.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/views/error_view.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/views/error_view.ex -------------------------------------------------------------------------------- /lib/real_deal_api_web/views/user_view.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/lib/real_deal_api_web/views/user_view.ex -------------------------------------------------------------------------------- /mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/mix.exs -------------------------------------------------------------------------------- /mix.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/mix.lock -------------------------------------------------------------------------------- /priv/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/.DS_Store -------------------------------------------------------------------------------- /priv/gettext/en/LC_MESSAGES/errors.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/gettext/en/LC_MESSAGES/errors.po -------------------------------------------------------------------------------- /priv/gettext/errors.pot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/gettext/errors.pot -------------------------------------------------------------------------------- /priv/repo/migrations/.formatter.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/repo/migrations/.formatter.exs -------------------------------------------------------------------------------- /priv/repo/migrations/20221129192316_create_accounts.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/repo/migrations/20221129192316_create_accounts.exs -------------------------------------------------------------------------------- /priv/repo/migrations/20221129192803_create_users.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/repo/migrations/20221129192803_create_users.exs -------------------------------------------------------------------------------- /priv/repo/migrations/20230131180245_guardiandb.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/repo/migrations/20230131180245_guardiandb.exs -------------------------------------------------------------------------------- /priv/repo/seeds.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/priv/repo/seeds.exs -------------------------------------------------------------------------------- /test/real_deal_api/accounts_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/test/real_deal_api/accounts_test.exs -------------------------------------------------------------------------------- /test/real_deal_api/schema/account_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/test/real_deal_api/schema/account_test.exs -------------------------------------------------------------------------------- /test/real_deal_api/schema/user_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/test/real_deal_api/schema/user_test.exs -------------------------------------------------------------------------------- /test/support/data_case.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/test/support/data_case.ex -------------------------------------------------------------------------------- /test/support/factory.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/test/support/factory.ex -------------------------------------------------------------------------------- /test/support/schema_case.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElixirMentor/real_deal_api/HEAD/test/support/schema_case.ex -------------------------------------------------------------------------------- /test/test_helper.exs: -------------------------------------------------------------------------------- 1 | ExUnit.start() 2 | Ecto.Adapters.SQL.Sandbox.mode(RealDealApi.Repo, :manual) 3 | --------------------------------------------------------------------------------