\ No newline at end of file
diff --git a/app/views/admin/dashboard.html.erb b/app/views/admin/dashboard.html.erb
new file mode 100644
index 00000000..3fe57eec
--- /dev/null
+++ b/app/views/admin/dashboard.html.erb
@@ -0,0 +1,26 @@
+
\ No newline at end of file
diff --git a/app/views/admin/items.html.erb b/app/views/admin/items.html.erb
new file mode 100644
index 00000000..08b66b1f
--- /dev/null
+++ b/app/views/admin/items.html.erb
@@ -0,0 +1,50 @@
+
\ No newline at end of file
diff --git a/app/views/admin/locations.html.erb b/app/views/admin/locations.html.erb
new file mode 100644
index 00000000..3cbbcc5d
--- /dev/null
+++ b/app/views/admin/locations.html.erb
@@ -0,0 +1,50 @@
+
\ No newline at end of file
diff --git a/app/views/admin/universes.html.erb b/app/views/admin/universes.html.erb
new file mode 100644
index 00000000..b314a2c7
--- /dev/null
+++ b/app/views/admin/universes.html.erb
@@ -0,0 +1,36 @@
+
Universes per user
+ <%# bar_chart User.joins(:items).group("items.user_id").count() %>
+ TODO
+
+
+
Privacy per universe
+ <%= pie_chart Universe.group(:privacy) %>
+
+
+
+
+
+
Characters per universe
+ <%# bar_chart Universe.joins(:items).group("items.universe_id").count() %>
+ TODO
+
+
+
Locations per universe
+ <%# bar_chart Universe.joins(:items).group("items.universe_id").count() %>
+ TODO
+
+
+
Items per universe
+ <%# bar_chart Universe.joins(:items).group("items.universe_id").count() %>
+ TODO
+
+
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
new file mode 100644
index 00000000..824c232f
--- /dev/null
+++ b/app/views/layouts/admin.html.erb
@@ -0,0 +1,24 @@
+
+
+
+ <%= content_for?(:title) ? yield(:title) : 'Notebook' %>
+ <%= stylesheet_link_tag 'application' %>
+ <%= javascript_include_tag 'application' %>
+ <%= csrf_meta_tags %>
+
+
+
+
+
+
+
+
+ <%= render 'layouts/navbar' %>
+
+
+ <%= yield %>
+
+
+
+
+
diff --git a/config/routes.rb b/config/routes.rb
index 8a7a0ff8..1c6c1123 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -43,6 +43,14 @@ Rails.application.routes.draw do
get 'editor', to: 'write#editor'
end
+ scope 'admin' do
+ get '/', to: 'admin#dashboard'
+ get '/universes', to: 'admin#universes'
+ get '/characters', to: 'admin#characters'
+ get '/locations', to: 'admin#locations'
+ get '/items', to: 'admin#items'
+ end
+
# API Endpoints
scope '/generate' do
# General information
diff --git a/test/controllers/admin_controller_test.rb b/test/controllers/admin_controller_test.rb
new file mode 100644
index 00000000..b8e0acfa
--- /dev/null
+++ b/test/controllers/admin_controller_test.rb
@@ -0,0 +1,29 @@
+require 'test_helper'
+
+class AdminControllerTest < ActionController::TestCase
+ test "should get dashboard" do
+ get :dashboard
+ assert_response :success
+ end
+
+ test "should get universes" do
+ get :universes
+ assert_response :success
+ end
+
+ test "should get characters" do
+ get :characters
+ assert_response :success
+ end
+
+ test "should get locations" do
+ get :locations
+ assert_response :success
+ end
+
+ test "should get items" do
+ get :items
+ assert_response :success
+ end
+
+end