Giter VIP home page Giter VIP logo

nodejs-starter's People

Contributors

bukharih avatar cristiandouce avatar rickyrauch avatar sachalifs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-starter's Issues

Code does not work

[Error: Module did not self-register.]
js-bson: Failed to load c++ bson extension, using pure JS version
njs Application started on port 3000 +716ms
events.js:85
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
at Socket.emit (events.js:107:17)
at net.js:459:14
at process._tickCallback (node.js:355:11)
make: *** [run] Error 1

Error when making nodejs-starter

Currently, I get the error:

Error: ENOENT, no such file or directory '/Users/bukharih/dev_local/nodejs-starter/lib/config/sample.json'

And that's because in commit 3a37590 the sample.json file was moved to development was moved to development.json.

"(sudo) make" dumps core on Ubuntu 12.04 64-bit

First off, I want to say thank you for this awesome resource. I'm just getting started with nodejs and this repo has been a huge help along the way.

However, I am having trouble building this project; the makefile dumps core and aborts before installing the github dependencies. Here is what I have been doing to reproduce the core dump that I am experiencing:

git clone https://github.com/gravityonmars/nodejs-starter.git nodejs-starter-test
cd nodejs-starter-test
sudo make &> output.txt

I posted the content of my output.txt here: https://gist.github.com/swgillespie/6742914/raw/7b48b24d0a8deb654d35cd3e5b2de928049b115d/gistfile1.txt .

Is anybody else having this issue? It seems weird that it is node itself that is failing an assertion and core dumping.

Other relevant things:

$ npm version
{ http_parser: '1.0',
  node: '0.11.6-pre',
  v8: '3.20.14.1',
  uv: '0.11.7',
  zlib: '1.2.3',
  modules: '0x000C',
  openssl: '1.0.1e',
  npm: '1.3.8',
  'nodejs-starter': '0.0.1' }
$ uname -a
Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

More features

It'd be great to offer support for the next sections:

  • Sign up (passport-local)
  • Simple profile (first name, last name)
  • Change password

A question about Heroku deployment

I keep receiving this error: "Error: Cannot find module 'models'" on Heroku.

I copied out the logs and put them in a gist due to length: https://gist.github.com/jshultz/9af05e8972f2eb4b1b76

Here's an excerpt:
2013-08-27T12:56:27.792568+00:00 app[web.1]: module.js:340
2013-08-27T12:56:27.791930+00:00 app[web.1]:
2013-08-27T12:56:27.792873+00:00 app[web.1]: throw err;
2013-08-27T12:56:27.792873+00:00 app[web.1]: ^
2013-08-27T12:56:27.794658+00:00 app[web.1]: at Function.Module._load (module.js:280:25)
2013-08-27T12:56:27.794658+00:00 app[web.1]: Error: Cannot find module 'models'

I setup my configs on Heroku and have a mongolab mongodb setup and the config val MONGO_URL is setup and the NODE_ENV is set to production.

It's running fine locally, just not when I deploy it. I was wondering if any of you have run across this before. After a lot of googling I'm just not sure what to do.

I posted this question to stackoverflow: http://l.jshultz.co/15wV6hf but no response yet. I thought I would turn to you experts. :)

Things to add

It'd be great to offer support for the next sections:

  • Body Class
  • Page Titles
  • Stylus Vars
  • Meta description
  • Prerender
  • Add Auth0
  • Better Docs
  • Avoid -page.jade

Invalid config key "mongoUrl"

Failed to load c++ bson extension, using pure JS version
F:\node_space\nodejs-starter\lib\config\index.js:43
throw new Error('Invalid config key "' + key + '"');
^

Error: Invalid config key "mongoUrl"
at config (F:\node_space\nodejs-starter\lib\config\index.js:43:9)
at configuration (F:\node_space\nodejs-starter\lib\setup\index.js:136:12)
at Object. (F:\node_space\nodejs-starter\lib\boot\index.js:31:27)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)

Redirecting STDOUT to the browser

Hi,

I've noticed that stdout is being redirected to the browser which is also enabling me to debug the generated app.js via chrome, nice. How is this being achieved, what module is responsible?

Thanks
Sam

Error setting TTL index on collection : sessions

Firstly, thanks for publishing this, I have already learnt a good deal by reading the code. Thank you for your time.

After a successful install - no errors, when I attempt to hit localhost:3000 the app crashes with the following exception as follows:

Failed to load c++ bson extension, using pure JS version
  njs:config Load local configuration from /Users/Ben/WebstormProjects/nodejs-starter/lib/config/development.json +0ms
  njs:config Merge environment set configuration variables +2ms
  njs:config Loaded config object for env development with sha "6cbfbb3f67bd7a46f14eb120de3b41d1" +2ms
  njs Application started on port 3000 +1s
/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/base.js:242
        throw message;      
              ^
Error: Error setting TTL index on collection : sessions
    at /Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/lib/connect-mongo.js:161:23
    at /Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:1430:36
    at __executeInsertCommand (/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:1829:12)
    at Db._executeInsertCommand (/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:1930:5)
    at /Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:1427:14
    at /Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:1560:7
    at /Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/cursor.js:162:16
    at commandHandler (/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/cursor.js:706:16)
    at /Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:1806:9
    at Server.Base._callHandler (/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/base.js:442:41)
    at /Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:485:18
    at MongoReply.parseBody (/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
    at null.<anonymous> (/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:443:20)
    at emit (events.js:107:17)
    at null.<anonymous> (/Users/Ben/WebstormProjects/nodejs-starter/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)
    at emit (events.js:110:17)
make: *** [run] Error 1
Ben:nodejs-starter Ben$ 

My environment is as follows:
node: v0.12.4
mongodb-osx-x86_64-3.0.3
npm: 2.10.1

Appreciate any thoughts.

Fix login

Login is not working, we should fix it.

Dev under Windows 7

according to #3 (comment):

when i do node .\bin\njs-install i get:

'.' is not recognized as an internal or external command,
operable program or batch file.

{ [Error: Command failed: '.' is not recognized as an internal or external comma
nd,
operable program or batch file.
] killed: false, code: 1, signal: null }

then i used component, installed packages and do node index.js, i get:

module.js:340
    throw err;
          ^
Error: Cannot find module 'build'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Function.<anonymous> (C:\Users\Kostarelo\Desktop\src\nodejs-starter\confi
g\index.js:46:13)
    at Function.app.configure (C:\Users\Kostarelo\Desktop\src\nodejs-starter\nod
e_modules\express\lib\application.js:393:61)
    at configuration (C:\Users\Kostarelo\Desktop\src\nodejs-starter\config\index
.js:27:7)
    at Object.<anonymous> (C:\Users\Kostarelo\Desktop\src\nodejs-starter\index.j
s:13:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

thanks
KB

Components and npm modules are not updated

When you add a new component or npm module and run make, component install and npm install are not executed if components and node_modules directories exists.
As a workaround, you have to run make clean && make, delete the directories manually or run component install and/or npm install.

I think it is due to node_modules and components Makefile targets are not PHONY. According to GNU make docs, when targets are executed, make looks for a file with the target name, and if it exists, the target is not executed unless is PHONY.
In this case, make components is generating a components directory, so when this directory exists, components target is bypassed. Same thing with node_modules.

Failed to load c++ bson extension, using pure JS version

Hi, I've installed the project following the provided instructions, however when I try to run it I get the following messages:

{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version

It seems this is due to a build error in this module: ./node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/builderror.log

In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:13:18: fatal error: util.h: No such file or directory
#include "util.h"
                 ^
compilation terminated.
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1

So it seems this depends on a missing header file util.h.

My versions are as follows:

  • node: v4.3.1
  • node-gyp: v3.3.0

Am I doing something wrong or is this an actual bug? Why the missing util.h file? Is this due to versions compatibility? Let me know if you need more info.

Thanks!

"Cannot read property 'filter' of null" error when installing components.

After running sudo make the npm modules install correctly however the components fail with the following error:

Ben:nodejs-starter Ben$ sudo make
Installing components...
       fatal : Cannot read property 'filter' of null

make: *** [components] Error 1

Node version: v0.12.4.

Appreciate any thoughts.

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.