-
install nvm, follow the link (manually or =with curl)
NVM install https://github.com/creationix/nvm for Linux Unbuntu
-
in terminal launch and follow instruction to generate node env ad package.json
npm init
-
create at the root folder the file
index.js
-
feel free to add node module like
npm install nodemon --save-dev
--save (just a dependacy) -dev(dev depency)to run the nodemon laucnh this command (not globally installed):
node node_modules/nodemon/bin/nodemon index.js
to install globallynpm install -g nodemon
-
add formidable module for parsing form data, especially file uploads (https://www.npmjs.com/package/formidable)
npm install formidable --save
-
add express.js http://expressjs.com/ in new folder named here (SampleExpress) for sample test
-
install express globally with express generator
-
create a new app
myApp
with the cmdexpress create myApp
-
to run the express app, go to myApp folder and write
DEBUG=myApp:* npm start
in terminal -
add a middleware (cf app.js line 25)
-
install mongo-Db (https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/):
-
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
-
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
-
sudo apt-get update
-
sudo apt-get install -y mongodb-org
-
-
install mongojs
npm install mongojs --save
-
add angular last step to MEAN boiler Plate
- A good Boiler Plate for implementing Node and Node environement
MEAN.JS (format modules: http://meanjs.org/ and https://github.com/meanjs/mean)
- Open-Source Full-Stack Solution For MEAN Applications
- MEAN.JS is a full-stack JavaScript solution that helps you build fast, robust, and maintainable production web applications using MongoDB, Express, AngularJS, and Node.js.
- MEAN.JS will help you getting started and avoid useless grunt work and common pitfalls, while keeping your application organized. Our goal is to create and maintain a simple and readable open-source solution that you can use and trust in your projects.
- After downloading the source code go over the official documentation of MongoDB, ExpressJS, AngularJS, and Node.js, then continue with the MEAN.JS Documentation.
MEAN.IO The Friendly & Fun Javascript Fullstack for your next web application (http://mean.io/ and http://learn.mean.io/)
Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.
MEAN is a framework for an easy starting point with MongoDB, Node.js, Express, and AngularJS based applications. It is designed to give you a quick and organized way to start developing MEAN based web apps with useful modules like Mongoose and Passport pre-bundled and configured. We mainly try to take care of the connection points between existing popular frameworks and solve common integration problems.