-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MEAN stack template #175
Comments
There is two very different options here. What's common in both cases is a node/express app with mongodb (mongoose recommanded) data storage. It could use a jade like template engine with some levels of interactive angularjs components. Or provide a REST API to be used from a plain angularjs application. My own practice is using both actually: a public site using first case and a private admin using the latter. My point here is: I am not sure my own practice could be reduced to a simple template files set without compromising the flexibility that's inherent to the MEAN stack but we could try... |
Personally, I think mixing client-side and server side processing is not good. Do you think hello-angularjs could be good base for MEAN template? |
Depends on where this "base" will lead you. You could also start from existing hello-express 4 project template, adding mongodb data storage (step 1: a node/mongodb template) then adding angularjs front end (step 2: a MEAN stack template) but it won't make much sense if it doesn't use mongodb for real - does it? Something simple enough it could do is to extend the data dynamic binding shown here: http://nodeleaf.net/angularjs-eclipse-plugin/ - running on a node/express app (instead of apache2) and storing the user inputs as new documents into a mongodb collection on localhost? And if the template script could handle this the target collection would be capped so it won't grow infinitely... |
I though maybe just |
A A typical one below - assuming we first create an express project in Nodeclipse: {
"name": "meanstack",
"version": "0.0.0",
"private": true,
"description": "Boilerplate mean stack project",
"main": "app.js",
"scripts": {
"start": "node ./bin/www",
"test": "echo \"Error: no test specified! Configure in package.json\" && exit 1",
},
"author": "",
"license": "",
"dependencies": {
"express": "latest",
"express-session": "latest",
"body-parser": "latest",
"cookie-parser": "latest",
"serve-favicon": "latest",
"morgan": "latest",
"mongoose": "latest",
"jade": "latest"
}
} I set all dependencies version above to "latest" as we don't know when it will be used but it's always possible to retrieve a given package current version like this:
|
Using Usually |
@nodeleaf Patrick
I want to add template to quickly create MEAN app (inside New Node.js Project Wizard)
Please guide me quick. I need simple minimun set of files, like I did for Angular
see https://github.com/Nodeclipse/nodeclipse-1/tree/master/org.nodeclipse.ui/templates/hello-angularjs
The text was updated successfully, but these errors were encountered: