This application is based on MEAN.JS which is a full-stack JavaScript open-source solution and provides a solid starting point for MongoDB, Node.js, Express, and AngularJS based applications.
Make sure you have installed all of the following 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.
- 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-cliYou can use Git to directly clone the INFLO repository from githubb:
$ git clone https://github.com/sonimehul/Hackathon-Team-10.gitThis will clone the latest version of the INFLO repository to a Hackathon-Team-10 folder.
Once you've cloned the repository and installed all the prerequisites, go to Hackathon-Team-10/mean directory and install Node.js dependencies using npm:
$ npm installAfter that go to Hackathon-Team-10/mean/ui directory and build UI resources using:
$ npm install
$ bower install
$ grunt buildAfter the install process is over, you'll be able to run your application using Grunt. Just run grunt default task:
$ gruntYour application should run on port 3000, so in your browser just go to http://localhost:3000/inflo
That's it! Your application should be running.
To execute only the server tests, run the test:server task:
$ grunt test:server
To run your application in a secure manner you'll need to use OpenSSL and generate a set of self-signed certificates. Unix-based users can use the following command:
$ sh ./scripts/generate-ssl-certs.shWindows users can follow instructions found here. After you've generated the key and certificate, place them in the config/sslcerts folder.
