feat(server): phoenix 1.7 scaffold with sqlite + liveview

This commit is contained in:
Carsten 2026-04-21 22:00:43 +02:00
parent fab512f1e1
commit b85d05afc8
41 changed files with 2279 additions and 0 deletions

28
server/config/test.exs Normal file
View file

@ -0,0 +1,28 @@
import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :server, Server.Repo,
database: Path.expand("../server_test.db", __DIR__),
pool_size: 5,
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :server, ServerWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "c4NkblA1lGNEwrcLi+qbLT1ofZrNLwU4WyTshhEnVzKxO0r2nqdYnxHn0tq6rtCM",
server: false
# Print only warnings and errors during test
config :logger, level: :warning
# Initialize plugs at runtime for faster test compilation
config :phoenix, :plug_init_mode, :runtime
# Enable helpful, but potentially expensive runtime checks
config :phoenix_live_view,
enable_expensive_runtime_checks: true