NOTE: replace all 'http' with 'https' if using 'https' (set in config.json
)
- Website
- Continuous Integration
- This automatically deploys and tests the yeoman generated mean-seed website on each Github push (from local development)
- Test Coverage Reports (currently ~90% frontend coverage, ~60% backend coverage)
- Backend API Interactive Docs
- i.e. Auth API
- Github Repo with Generated Code
Walkthrough course to use this Generator and MEAN stack in general
NOTE: If you want to CLONE this EXISTING repository, see cloning.md instead. Otherwise, if you want to build a NEW mean-seed from scratch using the Yeoman Generator, follow these steps below.
- machine (global / program) installs (if you don't have them already)
- install git, nodejs, mongodb, phantomjs
sudo npm install -g grunt-cli yo bower generator-mean-seed yuidocjs forever less
yo mean-seed
(from the NEW directory you want to create the app in)npm install && bower install
(if not already run successfully by Yeoman or any timepackage.json
orbower.json
change)- If any bower issues (sometimes 1 or more packages will timeout), just re-run
bower update && bower install
- If any npm issues, run
npm cache clean
(and optionally delete the troublesome package folders from thenode_modules
folder) then re-runnpm install
- If any bower issues (sometimes 1 or more packages will timeout), just re-run
./node_modules/protractor/bin/webdriver-manager update
(if not already run successfully by Yeoman)grunt q
to build assets (if not already run successfully by Yeoman and any time a*.less
(or*.scss
) or*.html
file changes)
- start server and view app
node run.js
to start node server (make sure MongoDB is already running first)- open a browser to
http://localhost:3000/
(orhttps://localhost:3000/
if using https) to view the site/app
- run tests
grunt
- (optional) Git remote (should have already been init'ed and commit'ed automatically)
- (optional) add a remote:
git remote add origin [url to repository]
- (optional) add a remote:
- see setup-detailed.md and running.md in the
docs
folder
Make sure to leverage the available (sub)generators - i.e. for creating new pages/routes/controllers, directives, and services!
Run generators with yo mean-seed
and then select the sub-generator you want to use!
You CAN and SHOULD keep your project up to date with the core (seed) generator you used as it goes through version upgrades. Just re-run:
Ensure the generator is up to date:
npm install -g generator-mean-seed
Pull in updates to your project (core/seed - make sure to select the same core you used originally):
yo mean-seed
- see the docs folder for more documentation. Each (sub)folder typically has an
overview.md
file - start there. Some key docs (roughly in order of priority) listed below:
- Built using Mean-Seed: https://github.com/jackrabbitsgroup/generator-mean-seed
- see here for more details - technology used, dependencies, limitations/compatibility, code standards, directory/file structure, workflow, etc.
- MongoDB, Express.js, AngularJS, Node.js + Yeoman (Grunt, Bower, Yo) + Jasmine, Karma, Protractor