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:
- MongoDB - Go through MongoDB Official Website and proceed to their Official Manual, which should help you understand NoSQL and MongoDB better.
- Express - The best way to understand express is through its Official Website, particularly The Express Guide; you can also go through this StackOverflow Thread for more resources.
- AngularJS - Angular's Official Website is a great starting point. You can also use Thinkster Popular Guide, and the Egghead Videos.
- Node.js - Start by going through Node.js Official Website and this StackOverflow Thread, which should get you going with the Node.js platform in no time.
Make sure you have installed all these prerequisites on your development machine.
- Node.js - Download & Install Node.js and the npm package manager, if you encounter any problems, you can also use this Github Gist to install Node.js.
$ sudo apt-get install nodejs $ sudo apt-get install npm
- MongoDB - Download & Install MongoDB, and make sure it's running on the default port (27017).
$ 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
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
(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.