Phoenix defaults to using Postgres, which is probably very sensible. Getting SQLite up and running using Sqlite.Ecto, though, is reasonably easy.
First, add the dependency for sqlite_ecto
in mix.exs
:
defp deps do
[...
{:sqlite_ecto, "~> 1.0.0"},
...]
end
Now update your config/dev.exs
to include reference Sqlite.Ecto:
config :widgetapp, Widgetapp.Repo,
adapter: Sqlite.Ecto,
database: "path/to/widgetapp.sqlite"
Drop into your console and run mix deps.get
to pull in your new dependencies and then run mix ecto.create
to get your database set up. If all goes well, you should get a new file created as specified in your dev.exs
as above.
From here, just develop as normal.