forked from mroth/phoenix-showdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.bundle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'cuba', '~> 3.4.0' | ||
gem 'puma', '~> 2.10.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
cuba (3.4.0) | ||
rack | ||
puma (2.10.2) | ||
rack (>= 1.1, < 2.0) | ||
rack (1.6.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
cuba (~> 3.4.0) | ||
puma (~> 2.10.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: RACK_ENV=production bundle exec puma -t 1:16 -w 4 -p $PORT --preload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require './server' | ||
run Cuba |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'cuba' | ||
require 'cuba/render' | ||
require 'erb' | ||
|
||
Cuba.plugin Cuba::Render | ||
|
||
Cuba.define do | ||
on ':title' do |title| | ||
@title = title | ||
@members = [ | ||
{ name: "Chris McCord" }, | ||
{ name: "Matt Sears" }, | ||
{ name: "David Stump" }, | ||
{ name: "Ricardo Thompson" } | ||
] | ||
res.write view('index') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<b>Name:</b> <%= member[:name] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<div class="jumbotron"> | ||
<h2>Welcome to Phoenix!</h2> | ||
<p class="lead">Phoenix is an Elixir Web Framework targeting full-featured, fault tolerant applications with realtime functionality.</p> | ||
</div> | ||
|
||
<div class="row marketing"> | ||
<div class="col-lg-6"> | ||
<h4>Resources: <%= @title %></h4> | ||
<ul> | ||
<li> | ||
<a href="http://api.phoenixframework.org/">Docs</a> | ||
</li> | ||
<li> | ||
<a href="https://github.com/phoenixframework/phoenix">Source</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="col-lg-6"> | ||
<h4>Help</h4> | ||
<ul> | ||
<li> | ||
<a href="https://github.com/phoenixframework/phoenix/issues?state=open">Issues</a> | ||
</li> | ||
<li> | ||
<a href="irc://irc.freenode.net/elixir-lang">#elixir-lang on freenode IRC</a> | ||
</li> | ||
<li> | ||
<a href="https://twitter.com/chris_mccord">@chris_mccord</a> | ||
</li> | ||
</ul> | ||
|
||
<h4>Team Members</h4> | ||
<ul> | ||
<% for member in @members do %> | ||
<li> | ||
<%= partial '_bio', { member: member } %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
|
||
<title>Hello Phoenix!</title> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="header"> | ||
<ul class="nav nav-pills pull-right"> | ||
<li><a href="https://github.com/phoenixframework/phoenix">Get Started</a></li> | ||
</ul> | ||
<span class="logo"></span> | ||
</div> | ||
|
||
<%= content %> | ||
|
||
<div class="footer"> | ||
<p><a href="http://phoenixframework.org">phoenixframework.org</a></p> | ||
</div> | ||
|
||
</div> <!-- /container --> | ||
</body> | ||
</html> |