GithubHelp home page GithubHelp logo

notewrangler's Introduction

Getting Started

To get you started you can simply clone the note-wrangler repo and install the dependencies:

Install Dependencies

You will need node.js version 5.5 (version 6 is not supported) installed to run this sample app, I recommend Node Version Manager. Check out the repo for installation directions: nvm github

We have preconfigured the app using npm to automatically run bower so we can simply do:

npm install

This creates a node_modules folder which contains the npm packages installed in the previous step

Run the Application

We have preconfigured the project with a simple development web server. The simplest way to start this server is:

npm start

Now pull up your application at http://localhost:8000/. The default user is demo with a password of secret

npm run debug

This starts the app in debug mode which allows you you to use node-inspector You can open another browser tab at: http://127.0.0.1:8080/debug?port=5858 to get to the web console.

Additional Resources

For more information on AngularJS and other kick-butt languages check out Code School!

notewrangler's People

Contributors

alyssamichelle avatar jonfriskics avatar renz45 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notewrangler's Issues

Failed at the [email protected] install script 'node-gyp rebuild'.

I cloned the repo and tried running npm install, but got the following errors in the output terminal:

make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
make: Leaving directory `/home/evert/AngularJS/workspace/NoteWrangler/node_modules/bcrypt/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/evert/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.13.0-85-generic
gyp ERR! command "/home/evert/local/bin/node" "/home/evert/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/evert/AngularJS/workspace/NoteWrangler/node_modules/bcrypt
gyp ERR! node -v v6.1.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
npm ERR! Linux 3.13.0-85-generic
npm ERR! argv "/home/evert/local/bin/node" "/home/evert/local/bin/npm" "install"
npm ERR! node v6.1.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/evert/AngularJS/workspace/NoteWrangler/npm-debug.log

Can anyone assist? I don't seem to be getting a solution myself...

npm start doesn't work and throws error

Hi, I am start server but getting following bcrypt error but when i try to install bcrypt it further does not installs bcrypt. I am new to node js please help.

Error: Cannot find module 'bcrypt'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (E:\sunny\Self study\ANGULAR JS\CODE SCHOOL\project\NoteWrangler\app\server\modules\encrypt.js:2:10)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.

npm ERR! This is most likely a problem with the note-wrangler package,

npm install bcrypt gives following error


E:\sunny\Self study\ANGULAR JS\CODE SCHOOL\project\NoteWrangler [master]> npm install bcrypt
/

[email protected] install E:\sunny\Self study\ANGULAR JS\CODE SCHOOL\project\NoteWrangler\node_modules\bcrypt
node-gyp rebuild

E:\sunny\Self study\ANGULAR JS\CODE SCHOOL\project\NoteWrangler\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio
2005 or 3) add the location of the component to the system path if it is installed elsewhere. [E:\sunny\Self study\ANGULAR JS\CODE SCHOOL\project\NoteWrangler\node_mo
dules\bcrypt\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: msbuild failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\sunny\Self study\ANGULAR JS\CODE SCHOOL\project\NoteWrangler\node_modules\bcrypt
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "bcrypt"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.

npm ERR! This is most likely a problem with the bcrypt package,

Gravatar error on JS console

Hello,

When I start the app, nothing appears, eventhough it looks like the database loaded. I'm getting an error on the browser's JS console:

Uncaught Error: [$injector:modulerr] Failed to instantiate module NoteWrangler due to:
Error: [$injector:unpr] Unknown provider: $gravatarProvider
http://errors.angularjs.org/1.2.21/$injector/unpr?p0=%24gravatarProvider
    at VALIDITY_STATE_PROPERTY (http://localhost:8000/js/vendor/angular.js:78:12)
    at http://localhost:8000/js/vendor/angular.js:3776:19
    at getService (http://localhost:8000/js/vendor/angular.js:3904:39)
    at Object.invoke (http://localhost:8000/js/vendor/angular.js:3931:13)
    at http://localhost:8000/js/vendor/angular.js:3859:37
    at forEach (http://localhost:8000/js/vendor/angular.js:325:18)
    at loadModules (http://localhost:8000/js/vendor/angular.js:3846:5)
    at createInjector (http://localhost:8000/js/vendor/angular.js:3786:11)
    at doBootstrap (http://localhost:8000/js/vendor/angular.js:1435:20)
    at bootstrap (http://localhost:8000/js/vendor/angular.js:1450:12)
http://errors.angularjs.org/1.2.21/$injector/modulerr?p0=NoteWrangler&p1=Er…ap%20(http%3A%2F%2Flocalhost%3A8000%2Fjs%2Fvendor%2Fangular.js%3A1450%3A12)angular.js:78 VALIDITY_STATE_PROPERTYangular.js:3880 (anonymous function)angular.js:325 forEachangular.js:3846 loadModulesangular.js:3786 createInjectorangular.js:1435 doBootstrapangular.js:1450 bootstrapangular.js:1363 angularInitangular.js:21878 (anonymous function)jquery.js:3073 jQuery.Callbacks.firejquery.js:3185 jQuery.Callbacks.self.fireWithjquery.js:3391 jQuery.extend.readyjquery.js:3407 completed

n/a

sudo apt-get install build-essential python2.7
followed by
npm config set python /usr/bin/python
to install bcrypt on kubuntu

npm install - too many errors

Hi all.

When I run "npm install" in NoteWrangler root folder, too many errors are shown. The first error is:

CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
In file included from ../src/bcrypt_node.cc:1:
In file included from ../node_modules/nan/nan.h:80:
In file included from ../node_modules/nan/nan_new.h:190:
../node_modules/nan/nan_implementation_12_inl.h:181:66: error: too many arguments to function
call, expected at most 2, have 4
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~

What should I do to solve this?

Thanks in advance.

My environment:
OS X 10.10.5
Xcode 6.4
npm 2.14.2

npm ERR! [email protected] start: `node app.js`

Thanks for making this public and I think this will be a great benefit to this Course. I'm currently at the start of Level 3 and really wanted to see this code working so everything is not so abstract.

I cloned and ran npm install... then I ran npm start following the instructions on the README. Here is the error:

module.js:340
    throw err;
          ^
Error: Cannot find module 'passport-local'
    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 Object.<anonymous> (/***/_development/codeSchool/AngularJS/NoteWrangler/app/server/modules/routes/session.js:2:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the note-wrangler package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls note-wrangler
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.1.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /***/_development/codeSchool/AngularJS/NoteWrangler
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /***/_development/codeSchool/AngularJS/NoteWrangler/npm-debug.log
npm ERR! not ok code 0 ```

Please let me know if I need to provide any additional information like the debug.log as mentioned in this error.

Thanks again,
G

failed postinstall: `node dbSeed.js` on linux

npm install error:
npm ERR! [email protected] postinstall: node dbSeed.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the note-wrangler package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node dbSeed.js
npm ERR! You can get their info via:
npm ERR! npm owner ls note-wrangler
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-44-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/sander/WebstormProjects/NoteWrangler
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/sander/WebstormProjects/NoteWrangler/npm-debug.log
npm ERR! not ok code 0

Can anyone fix this?

NoteWrangler on windows.

@jonfriskics, I just got finished helping someone from the codeschool forums get this running on windows with node v5.4.1 and it was a bit of a fight. You can see our conversation here: http://discuss.codeschool.io/t/unable-to-install-the-demo-code-in-github/22956

In the end I just had to bump the sqlite3 version to the latest and exchanged bcrypt for bcryptjs in the dependencies and app/server/modules/encrypt.js. What do you think about making these changes to this here?

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.