diff --git a/lib/app_web/router.ex b/lib/app_web/router.ex
index aa7a8a83..827d099a 100644
--- a/lib/app_web/router.ex
+++ b/lib/app_web/router.ex
@@ -38,11 +38,11 @@ defmodule AppWeb.Router do
# need to re-create logout
# get "/people/logout", PersonController, :logout
+ # resources "/people", PersonController
# generic resources for schemas:
resources "/items", ItemController
resources "/lists", ListController
- resources "/people", PersonController
resources "/status", StatusController
resources "/tags", TagController
resources "/timers", TimerController
diff --git a/lib/app_web/templates/person/edit.html.eex b/lib/app_web/templates/person/edit.html.eex
deleted file mode 100644
index bf7ba557..00000000
--- a/lib/app_web/templates/person/edit.html.eex
+++ /dev/null
@@ -1,5 +0,0 @@
-
Edit Person
-
-<%= render "form.html", Map.put(assigns, :action, Routes.person_path(@conn, :update, @person)) %>
-
-<%= link "Back", to: Routes.person_path(@conn, :index) %>
diff --git a/lib/app_web/templates/person/form.html.eex b/lib/app_web/templates/person/form.html.eex
deleted file mode 100644
index d9b68067..00000000
--- a/lib/app_web/templates/person/form.html.eex
+++ /dev/null
@@ -1,39 +0,0 @@
-<%= form_for @changeset, @action, fn f -> %>
- <%= if @changeset.action do %>
-
-
Oops, something went wrong! Please check the errors below.
-
- <% end %>
-
- <%= label f, :username %>
- <%= text_input f, :username %>
- <%= error_tag f, :username %>
-
- <%= label f, :username_hash %>
- <%= text_input f, :username_hash %>
- <%= error_tag f, :username_hash %>
-
- <%= label f, :email %>
- <%= text_input f, :email %>
- <%= error_tag f, :email %>
-
- <%= label f, :givenName %>
- <%= text_input f, :givenName %>
- <%= error_tag f, :givenName %>
-
- <%= label f, :familyName %>
- <%= text_input f, :familyName %>
- <%= error_tag f, :familyName %>
-
- <%= label f, :password_hash %>
- <%= text_input f, :password_hash %>
- <%= error_tag f, :password_hash %>
-
- <%= label f, :key_id %>
- <%= number_input f, :key_id %>
- <%= error_tag f, :key_id %>
-
-
- <%= submit "Save" %>
-
-<% end %>
diff --git a/lib/app_web/templates/person/index.html.eex b/lib/app_web/templates/person/index.html.eex
deleted file mode 100644
index 671e3abc..00000000
--- a/lib/app_web/templates/person/index.html.eex
+++ /dev/null
@@ -1,40 +0,0 @@
-Listing People
-
-
-
-
- Username |
- Username hash |
- Email |
- Email hash |
- Givenname |
- Familyname |
- Password hash |
- Key |
-
- |
-
-
-
-<%= for person <- @people do %>
-
- <%= person.username %> |
- <%= person.username_hash %> |
- <%= person.email %> |
- <%= person.email_hash %> |
- <%= person.givenName %> |
- <%= person.familyName %> |
- <%= person.password_hash %> |
- <%= person.key_id %> |
-
-
- <%= link "Show", to: Routes.person_path(@conn, :show, person) %>
- <%= link "Edit", to: Routes.person_path(@conn, :edit, person) %>
- <%= link "Delete", to: Routes.person_path(@conn, :delete, person), method: :delete, data: [confirm: "Are you sure?"] %>
- |
-
-<% end %>
-
-
-
-<%= link "New Person", to: Routes.person_path(@conn, :new) %>
diff --git a/lib/app_web/templates/person/info.html.eex b/lib/app_web/templates/person/info.html.eex
deleted file mode 100644
index ded952d5..00000000
--- a/lib/app_web/templates/person/info.html.eex
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-Log out
-
-
- Hello <%= @person.givenName %>!
-
- You are signed in
- with
-
- <%= @person.email %>
-
-
-
-
-<%= link "Capture", to: Routes.capture_path(@conn, :new) %>
\ No newline at end of file
diff --git a/lib/app_web/templates/person/new.html.eex b/lib/app_web/templates/person/new.html.eex
deleted file mode 100644
index 3f3617f1..00000000
--- a/lib/app_web/templates/person/new.html.eex
+++ /dev/null
@@ -1,5 +0,0 @@
-New Person
-
-<%= render "form.html", Map.put(assigns, :action, Routes.person_path(@conn, :create)) %>
-
-<%= link "Back", to: Routes.person_path(@conn, :index) %>
diff --git a/lib/app_web/templates/person/show.html.eex b/lib/app_web/templates/person/show.html.eex
deleted file mode 100644
index 0fac7ac9..00000000
--- a/lib/app_web/templates/person/show.html.eex
+++ /dev/null
@@ -1,48 +0,0 @@
-Show Person
-
-
-
- -
- Username:
- <%= @person.username %>
-
-
- -
- Username hash:
- <%= @person.username_hash %>
-
-
- -
- Email:
- <%= @person.email %>
-
-
- -
- Email hash:
- <%= @person.email_hash %>
-
-
- -
- Givenname:
- <%= @person.givenName %>
-
-
- -
- Familyname:
- <%= @person.familyName %>
-
-
- -
- Password hash:
- <%= @person.password_hash %>
-
-
- -
- Key:
- <%= @person.key_id %>
-
-
-
-
-<%= link "Edit", to: Routes.person_path(@conn, :edit, @person) %>
-<%= link "Back", to: Routes.person_path(@conn, :index) %>
diff --git a/mix.exs b/mix.exs
index 05320c00..c8d8fb02 100644
--- a/mix.exs
+++ b/mix.exs
@@ -13,6 +13,7 @@ defmodule App.MixProject do
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
+ c: :test,
coveralls: :test,
"coveralls.json": :test,
"coveralls.html": :test
@@ -78,7 +79,8 @@ defmodule App.MixProject do
"ecto.setup": ["ecto.create --quiet", "ecto.migrate --quiet", "seeds"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
seeds: ["run priv/repo/seeds.exs"],
- test: ["ecto.reset", "test"]
+ test: ["ecto.reset", "test"],
+ c: ["coveralls.html"]
]
end
end