DESTINY is a Full-stack javascript ecommerce application built with mean.io framework.
mongod
is running on the default port (27017).npm
:$ npm install -g bower
$ npm install -g grunt-cli
The quickest way to get started with DESTINY is to install the meanio
package from NPM.
Install MEAN CLI, clone destiny repo & install dependency:
$ npm install -g mean-cli
$ git clone https://github.com/plannifnminus1fails/destiny.git
$ cd destiny && npm install
We recommend using Grunt to start the server:
$ grunt
If grunt aborts because of JSHINT errors, these can be overridden with the force
flag:
$ grunt -f
Alternatively, when not using grunt
you can run:
$ node server
Then, open a browser and go to:
http://localhost:3000
During install some of you may encounter some issues.
Most issues can be solved by one of the following tips, but if are unable to find a solution feel free to contact us via the repository issue tracker or the links provided below.
Sometimes you may find there is a weird error during install like npm's Error: ENOENT. Usually updating those tools to the latest version solves the issue.
Updating NPM:
$ npm update -g npm
Updating Grunt:
$ npm update -g grunt-cli
Updating Bower:
$ npm update -g bower
NPM and Bower has a caching system for holding packages that you already installed. We found that often cleaning the cache solves some troubles this system creates.
NPM Clean Cache:
$ npm cache clean
Bower Clean Cache:
$ bower cache clean
All configuration is specified in the config folder, through the env files, and is orchestrated through the meanio NPM module. Here you will need to specify your application name, database name, and hook up any social app keys if you want integration with Twitter, Facebook, GitHub, or Google.
There is a shared environment config: all.
There are three environments provided by default: development, test, and production.
Each of these environments has the following configuration options:
To run with a different environment, just specify NODE_ENV as you call grunt:
$ NODE_ENV=test grunt
If you are using node instead of grunt, it is very similar:
$ NODE_ENV=test node server
To simply run tests
$ npm test
NOTE: Running Node.js applications in the production environment enables caching, which is disabled by default in all other environments.
You can find it at packages/custom/product. For working example checkout this; http://localhost:3000/#!/product/help