benVigie/Birds

Can't run, layout.jade missing

Closed this issue · 3 comments

looks like views/layout.jade is missing!!!

Express
500 Error: /home/aritz/Dev/Birds/views/index.jade:1
> 1| extends layout
2|
3| block content
4| h1= title

ENOENT, no such file or directory '/home/aritz/Dev/Birds/views/layout.jade'

> 1| extends layout
2|
3| block content
4| h1= title
ENOENT, no such file or directory '/home/aritz/Dev/Birds/views/layout.jade'
at Object.fs.openSync (fs.js:432:18)
at Object.fs.readFileSync (fs.js:286:15)
at Parser.parseExtends (/home/aritz/Dev/Birds/node_modules/jade/lib/parser.js:470:18)
at Parser.parseExpr (/home/aritz/Dev/Birds/node_modules/jade/lib/parser.js:198:21)
at Parser.parse (/home/aritz/Dev/Birds/node_modules/jade/lib/parser.js:120:25)
at parse (/home/aritz/Dev/Birds/node_modules/jade/lib/jade.js:95:62)
at Object.exports.compile (/home/aritz/Dev/Birds/node_modules/jade/lib/jade.js:154:9)
at Object.exports.render (/home/aritz/Dev/Birds/node_modules/jade/lib/jade.js:258:15)
at Object.exports.renderFile (/home/aritz/Dev/Birds/node_modules/jade/lib/jade.js:295:18)
at View.exports.renderFile [as engine] (/home/aritz/Dev/Birds/node_modules/jade/lib/jade.js:280:21)

I need to update the readme file, but here is how to process for first install:

1 - Clone the repository on your machine
2 - Navigate into the project root with your console
3 - Perform npm install to install depencies (including Jade ;) )
4 - Change conf values in file sharedConstants.js to add your server address
5 - Then launch the server with command node server.js !

All that done, still not working. Need to rename Birds.jade to index.jade for app to start working.

My bad ! I forget to mention that you have to reach the page http://yourServer:port/birds in your browser. The default address / is unuse (in case your node.js server have other site to manage).