Skip to content

Commit

Permalink
add example index page
Browse files Browse the repository at this point in the history
  • Loading branch information
pokutnik committed Mar 30, 2013
1 parent 7fa0039 commit 53b3a69
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
3 changes: 1 addition & 2 deletions api_srv/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ app.configure(function(){
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('your secret here'));
app.use(express.cookieParser('secret'));
app.use(express.session());
app.use(app.router);
app.use(require('less-middleware')({ src: __dirname + '/public' }));
Expand Down
5 changes: 3 additions & 2 deletions api_srv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dependencies": {
"express": "3.1.0",
"jade": "*",
"less-middleware": "*"
"less-middleware": "*",
"yaml": "*"
}
}
}
19 changes: 17 additions & 2 deletions api_srv/views/index.jade
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
extends layout

block content
h1= title
p Welcome to #{title}
h1 Welcome to Mimikria
section#api
p voices
form(action="/api/", method="GET")
button="submit"

section#voices
p voices
form(action="/api/voices", method="GET")
button="submit"

section#profile
p profile
form(action="/api/profile", method="POST")
input(name="email", value="[email protected]")
button="submit"

0 comments on commit 53b3a69

Please sign in to comment.