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
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
testing mean stack