digidoc

Created: 2014-05-18 16:08
Updated: 2016-07-08 12:10
License: other

README.md

MEAN.JS Logo

Build Status Dependencies Status

IM Dashboard MongoDB, Node.js, Express, and AngularJS based application. The idea is to build a scalable solution for small scale projects that require distributed datamanagement and data visualisation through maps (GIS).

Before You Begin

Before you begin we recommend you read about the basic building blocks that assemble a MEAN.JS application:

Prerequisites

Make sure you have installed all these prerequisites on your development machine.

$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ sudo apt-get install mongodb

sudo apt-get install mongodb

  • Bower - You're going to use the Bower Package Manager to manage your front-end packages, in order to install it make sure you've installed Node.js and npm, then install bower globally using npm:
$ sudo npm install -g bower
  • Grunt - You're going to use the Grunt Task Runner to automate your development process, in order to install it make sure you've installed Node.js and npm, then install grunt globally using npm:
$ sudo npm install -g grunt-cli

Getting Started With the Digidoc

Edit the config/secrets.json.template to set your project secrets and save it to config/secrets.json

Make sure the certificates mentioned in the secrets.json are located in the config/cert/

The apache service needs to be running, as it is serving as a proxy: sudo service apache2 start|stop|restart

The apache config files are located in /etc/apache2/sites-available/

The digidoc upstart script needs to be running, which will start the node server: sudo start|stop digidoc The upstart script is located in /etc/init/digidoc.conf

Debugging

If for whatever reason you need to debug on the production server, use this command: sudo NODE_ENV="development" PATH=$PATH node-debug /var/www/digidoc/server.js

Credits

Inspired by the great work of Madhusudhan Srinivasa The MEAN name was coined by Valeri Karpov

License

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more