Implemented via the Organic pattern.
- NodeJS v6.2.1 or above
- Mongodb v3.2.6 or above
npm testruns all testsnode_modules/.bin/jasmineruns all testsnode_modules./bin/jasmine <filename>runs individual test batch
npm install- Configure mongodb
- Replace "organic-skeleton-db/organic-skeleton-test-db" with your db name for _development, _production and _test environments in
dna/processes/index.jsonfiles
Note: Keep in mind it's a good idea to use different db for tests, since it will be wiped out every time you run them.
3. npm run seed to fill up db with demo data.
4. node index.js or npm start
rootassets- Contains your server side-resources, documents, json files, etc.cell- This is the root of your main celldna- This is where your project configuration layspublic- Contains files publicly accessible by default on the server. Express is setup to feed this as a static folder on thestatic/routespec- The Jasmine tests live in this directoryhelpers- Helper scripts that are loaded by Jasmine by default (bootstrap.jsfile)support- Jasmine configuration files
tasks- Tasks are standalone scripts that you can use to execute code from the command line. You can wrap them up in a Grunt setup, use NPM scripts, call them manually or whatever suits you