Git Product home page Git Product logo

codefish-node's People

Contributors

clemenshelm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

codefish-node's Issues

Tests aren't testing anything.

The 2 specs provided don't function properly, if you run jasmine-node with the
"--captureExceptions" flag you will see:

..

Finished in 0.039 seconds
2 tests, 0 assertions, 0 failures, 0 skipped


TypeError: Object [ A ] has no method 'text'
    at /Users/john/Projects/Javascript/Node/codefish-node/spec/frontpage_spec.js:15:65
    at _fulfilled (/Users/john/Projects/Javascript/Node/codefish-node/node_modules/zombie/node_modules/q/q.js:797:54)
    at self.promiseDispatch.done (/Users/john/Projects/Javascript/Node/codefish-node/node_modules/zombie/node_modules/q/q.js:826:30)
    at Promise.promise.promiseDispatch (/Users/john/Projects/Javascript/Node/codefish-node/node_modules/zombie/node_modules/q/q.js:759:13)
    at /Users/john/Projects/Javascript/Node/codefish-node/node_modules/zombie/node_modules/q/q.js:573:44
    at flush (/Users/john/Projects/Javascript/Node/codefish-node/node_modules/zombie/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:415:13)

router integration issues due to closure scope... maybe

Hey there, so I have been struggling to find a node template that works right off the bat with codeship. This one did the trick. But since the app.js is wrapped in a var app = function () { trying to add within routes using var routes = require('./routes/routes'); and then app.use('/routes', routes); does not work when in the routes.js file I try to use var router = express.Router(); and:

router.get('/', function(req, res, next) {
    res.render('index', { title: "Codefish", header: "I've entered the Codeship!", paragraph: "I just deployed my Node.js app with Codeship" });
});

Similarly if I try to refactor the app.js and remove the var app = function () { and inject into it the app.listen(... from start.js and alter the package.json to "main": "app.js", that works locally, but when I run it through to codeship > heroku, node does not automatically load and so nothing gets served... Any idea why this might be the case? Would you have a refactored version that works with routes etc...? Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.