A Library management system
Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git. OSX and Linux machines typically have this already installed.
- Node.js - Download & Install Node.js and the npm package manager.
- MongoDB - Download & Install MongoDB, and make sure it's running on the default port (27017).
- Bower - You're going to use the Bower Package Manager to manage your front-end packages. Make sure you've installed Node.js and npm first, then install bower globally using npm:
$ npm install -g bower
- Grunt - You're going to use the Grunt Task Runner to automate your development process. Make sure you've installed Node.js and npm first, then install grunt globally using npm:
$ npm install -g grunt-cli
The first thing you should do is install the Node.js dependencies.
To install Node.js dependencies you're going to use npm. In the application folder run this in the command-line:
$ npm install
This command does a few things:
- First it will install the dependencies needed for the application to run.
- If you're running in a development environment, it will then also install development dependencies needed for testing and running your application.
- Finally, when the install process is over, npm will initiate a bower install command to install all the front-end modules needed for the application
After the install process is over, you'll be able to run your application using Grunt, just run grunt default task:
$ grunt
Your application should run on port 3000 with the development environment configuration, so in your browser just go to http://localhost:3000
That's it! Your application should be running. To proceed with your development, check the other sections in this documentation. If you encounter any problems, try the Troubleshooting section.
- explore
config/env/development.js
for development environment configuration options
To run your application with production environment configuration, execute grunt as follows:
$ grunt prod
- explore
config/env/production.js
for production environment configuration options
mkdir /backup
cd /backup
mongodump --db mean-dev
mongoexport --db mean-dev --collection books --out books.json
mongoexport --db mean-dev --collection users --out users.json
.bowerrc file is provided with configuration for bower in JSON format. Currently it is only setting installation directory to 'public/lib' and this directory is git ignored.