Phauxth
Authentication library for Phoenix web apps.
Getting started with Phauxth and Phoenix
Create new Phoenix project
Run the following commands (replace alibaba with the name of your project):
mix phx.new alibaba
cd alibaba
To create an api, change the mix phx.new command to:
mix phx.new alibaba --no-html --no-brunch
Run the Phauxth installer
Download and install the phauxth_new installer.
mix archive.install https://github.com/riverrun/phauxth/raw/master/installer/archives/phauxth_new.ez
For a basic setup, run the following command:
mix phauxth.new
If you want to add email / phone confirmation and password resetting, add the --confirm option:
mix phauxth.new --confirm
If you want to create authentication files for an api, use the --api option:
mix phauxth.new --api
Add phauxth to deps
Make sure you are using Elixir 1.4 or above.
-
Add phauxth to your
mix.exsdependenciesdefp deps do[{:phauxth, "~> 0.8"}]end -
Run
mix deps.get
See the wiki for more information about Phauxth.
License
BSD