This project should serve as a reference for writing web application on top of Node.js and Angular.js.
It is built on top of AngularJS 1.2.9, Node.js 0.10.24, Redis and MongoDB 2.4.7.
- Build Infrastructure
- Application Skeleton
- User Authentication and Authorization
- File Uploads
- ...
Download Node.js from here: http://nodejs.org/ or install Node.js through a packet manager if you're using a Linux distribution. See the following Wiki page for more information: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
Additionally, you'll need MongoDB and Redis.
Clone the repository
# git clone https://github.com/ToastShaman/angularjs-nodejs-app.git
and run
# npm install -g bower grunt grunt-cli
# npm install
Run the default
Grunt task to compile the CSS and minify the resources:
# grunt
After you've made sure that your MongoDB and Redis instance is running you can start the Node.js server by entering:
# node server.js
You can now see the application running under the following url: http://localhost:3000
If you want to start the server on a different port you can do that by passing environment variables to the Node command
# PORT=5000 node server.js
To run the tests, simply run the Grunt test
task like so:
# grunt test
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Many thanks go to the following who have contributed to making this even better:
angularjs-nodejs-app
- Freely distributable and licensed under the MIT license.