Overview of a MEAN Stack Framework
http://mean.io
About me
Software Developer
Part time Dog Walker(!)
Windsurfer/kiteboarder & snowkiter
FTE - Lead Front-end Developer
@baskint
mean.io
- Introduction & Installation
- Common Language Interface (CLI)
- Packages
- Application Structure
- DEMO
- Deployment
- Summary
- Wishlist
- Next steps
- Q & A
FullStack - JS
"Any application that can be written in JS, will eventually be written in JS"
-Atwood's Law
mean.io
Prerequisites
- git
- nodejs
- mongodb
- bower
- gulp
brew install git
brew install node
brew install mongodb
npm install -g bower
npm install -g gulp
Then install mean-cli
sudo npm install -g mean-cli
Create your app using
mean init nameOfYourApp
Install packages and start the app
cd nameOfYourApp
npm install
gulp
On a Mac OS (brew)
npm-dview
Common Language Interface (CLI)
mean help
Packages
// to install
mean package yourPackageName
// to remove
mean uninstall yourPackageName
Directory Structure
DEMO
Deployment
==> Heroku (install Heroku toolbelt first)
git init
git add .
git commit -m "initial version"
heroku apps:create
heroku config:add NODE_ENV=production
heroku config:add BUILDPACK_URL=https://github.com/youraccount/yourproject.git
git push heroku master
heroku config:set NODE_ENV=production
Update your db string - suggest MongoLabs or MongoHQ
==> OpenShift
- Register an account for OpenShift
- Create a node app and clone it locally
- Merge with your mean.io
- Push repo back to OpenShift
Summary
- Dove into one of the prominent boilerplate MEAN frameworks out in the open source
- Installation for the most part is quite frictionless
- Without knowing a lot of intricacies of the stack, it is possible to get an app running and deployed
- Package management and application lifetime maintenance can be challenging
- Increased Community support and working samples
mean-cli g model game name:string description:text
- Scaffolding
Wishlist
- File Naming Convention - not my choice
- Dependency management and fixing broken authorization routes
Next steps
Books ==>
Video Tutorials ==>
Thanks!
Q & A
Overview of a MEANStack Framework -> mean.io
By baskint
Overview of a MEANStack Framework -> mean.io
this is a discussion of the MEAN stack framework - mean.cio
- 1,142