2 |
3 | <.flash_group flash={@flash} />
4 | <%= @inner_content %>
5 |
6 |
7 |
--------------------------------------------------------------------------------
/example/priv/repo/migrations/.formatter.exs:
--------------------------------------------------------------------------------
1 | [
2 | import_deps: [:ecto_sql],
3 | inputs: ["*.exs"]
4 | ]
5 |
--------------------------------------------------------------------------------
/example/priv/repo/migrations/20240715171511_add_books_table.exs:
--------------------------------------------------------------------------------
1 | defmodule BookClub.Repo.Migrations.AddBooksTable do
2 | use Ecto.Migration
3 |
4 | def change do
5 | create table(:books) do
6 | add :title, :string
7 |
8 | timestamps()
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/example/priv/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/elixirland/xlp-book-club-API/bd50c94d9158d71f6d55b84fb9ca76bc2ec706f0/example/priv/static/favicon.ico
--------------------------------------------------------------------------------
/example/priv/static/robots.txt:
--------------------------------------------------------------------------------
1 | # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2 | #
3 | # To ban all spiders from the entire site uncomment the next two lines:
4 | # User-agent: *
5 | # Disallow: /
6 |
--------------------------------------------------------------------------------
/example/test/book_club/book_test.exs:
--------------------------------------------------------------------------------
1 | defmodule BookClub.BookTest do
2 | use BookClub.DataCase
3 | alias BookClub.Books.Book
4 |
5 | describe "changeset/2" do
6 | test "valid changeset" do
7 | attrs = %{
8 | title: "some title"
9 | }
10 |
11 | changeset = Book.changeset(%Book{}, attrs)
12 |
13 | assert changeset.valid?
14 | end
15 | end
16 | end
17 |
--------------------------------------------------------------------------------
/example/test/book_club_web/controllers/error_json_test.exs:
--------------------------------------------------------------------------------
1 | defmodule BookClubWeb.ErrorJSONTest do
2 | use BookClubWeb.ConnCase, async: true
3 |
4 | test "renders 404" do
5 | assert BookClubWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
6 | end
7 |
8 | test "renders 500" do
9 | assert BookClubWeb.ErrorJSON.render("500.json", %{}) ==
10 | %{errors: %{detail: "Internal Server Error"}}
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/example/test/test_helper.exs:
--------------------------------------------------------------------------------
1 | ExUnit.start()
2 | Ecto.Adapters.SQL.Sandbox.mode(BookClub.Repo, :manual)
3 |
--------------------------------------------------------------------------------
/preview.webm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/elixirland/xlp-book-club-API/bd50c94d9158d71f6d55b84fb9ca76bc2ec706f0/preview.webm
--------------------------------------------------------------------------------
/thumbnail.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/elixirland/xlp-book-club-API/bd50c94d9158d71f6d55b84fb9ca76bc2ec706f0/thumbnail.webp
--------------------------------------------------------------------------------
/thumbnail_small.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/elixirland/xlp-book-club-API/bd50c94d9158d71f6d55b84fb9ca76bc2ec706f0/thumbnail_small.webp
--------------------------------------------------------------------------------