Skip to content

DevProjectsForDevOps/Library

 
 

Repository files navigation

Library

A Library management system

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

$ 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

Quick Install

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

Running Your 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

Running in Production mode

To run your application with production environment configuration, execute grunt as follows:

$ grunt prod
  • explore config/env/production.js for production environment configuration options

Taking dumps and backups

Create a folder
mkdir /backup
Navigate and take dump of entire DB
cd /backup

mongodump --db mean-dev
Also export the important (currently) collections as JSON
mongoexport --db mean-dev --collection books --out books.json

mongoexport --db mean-dev --collection users --out users.json

Few more details

.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.

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.5%
  • HTML 15.9%
  • CSS 1.4%
  • Shell 0.2%