Plug.Session DB Store
How-To: Database Session Store with Elixir and Plug
Description
See article Database Session Store with Elixir and Plug.
Requirements
- Phoenix 1.5.4 or later
- Elixir: see section
matrix.elixir
- Erlang: see section
matrix.otp
Installation
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
npm install
inside theassets
directory - Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Testing
$ mix test
$ mix cov
Code Analysis
$ mix check [--fix]
Documentation
$ mix docs
License
See LICENSE.