# DankUserService

DankUserService is a User database that can be controlled through the given client (DankUserService.Client) 
First, start an IEx console with ```iex -S mix```. 
Then run the applications server :
  iex(1)> {:ok, pid} = DankUserService.Server.start_link()
  {:ok, #PID<123.123>}

You can connected to the server using the module's name as a PID ```DankUserService.Server``` (they are linked) but this syntax allows you to keep the ServerPID stored in a variable.
Once this is done, you can use the different commands to access the data you want : 

  iex(2)> params = %{username: "John Doe", email: "", password: "peacebird"}
  %{username: "John Doe", email: "", password: "peacebird"}

  iex(3)> user = DankUserService.Client.create(pid, params)

  iex(4)> DankUserService.Client.update(pid,, %{email: ""})

  iex(5)>, id)

  iex(5)> DankUserService.Client.delete(pid, id)

Any case of error, would return a result in the form of {:error, error_info}

## Installation

If [available in Hex](, the package can be installed
by adding `DankUserService` to your list of dependencies in `mix.exs`:

def deps do
  [{:dankuserservice, "~> 0.1.0"}]

Documentation can be generated with [ExDoc](
and published on [HexDocs]( Once published, the docs can
be found at [](