starter kit for Mongodb, Express, AngularJS, Node.js
Install Node.js
- node and npm - download and run installer
Install these dependencies to your Global modules, so they're accessible anywhere
- Clone this repo
- (OPTIONAL, file already exists in repo) Create your package.json file with required Node dependencies:
npm install express morgan mongoose body-parser bcrypt-nodejs --save
- Install your Node dependencies locally into your project:
npm install
- Start the application using nodemon:
nodemon server.js
- Visit the application in your browser: http://localhost:8080
- Enjoy!
NPM is a node.js package manager
# install a package globally using -g flag
$ npm install <package> -g
# install a package locally
$ npm install <package>
# install a package and also update package.json with the installed version and package name
$ npm install <package> --save
# install multiple packages at same time
$ npm install <package1> <package2> <package3> --save
# install dependencies already declared in package.json file
$ npm install
# get node & npm version
$ node --version && npm --version
# get version #'s of packages installed
$ npm view <package> versions
# list packages that are installed locally
$ npm list
# list packages that are installed globally
$ npm list -g --depth=0
Nodemon is a utility that will monitor for any changes in your source and automatically restart your server
# install nodemon globally
$ npm install nodemon -g
Bower is a package manager for Javascript libraries that allows you to define, version, and retrieve your dependencies
[.bowerrc]
# to install packages to a specified folder instead of 'bower_components' folder.
# create a file in root `.bowerrc` with:
{
"directory": "public/assets/libs"
}
# install https://github.com/angular-ui/bootstrap
$ bower install angular-bootstrap --save
# install bower globally
$ npm install bower -g
# create bower.json file
$ bower init
# install dependencies listed in bower.json
$ bower install
# install a package and add it to bower.json
$ bower install <package> --save
# install specific version of a package and add it to bower.json
$ bower install <package>#<version> --save
# uninstall a locally installed package
$ bower uninstall <package-name>
# Install Grunt & Gulp globally
$ npm install -g gulp grunt-cli
The following keywords will close an issue via commit message, include the # of Issue in the message
close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved
ex: updated file, fixes #1