Angularjs stack generator is a generator integrating mongodb, express, angularjs, and node?Generator?)。 To put it simply, it’s like setting up SSH for you when eclipse new Pro is running. Here is setting up angular express mongodb (mongoose) (socketio), unit testing and E2E. It’s very convenient, just one command.
Need to be pre installed: (these are not detailed)
Node.js
Yeoman
MongoDB
Install generator:
npminstall-ggenerator-angular-fullstack
If there is an error, it is usually eAccess (permission) error, and sudo is added before it
New construction steps:
1
1. Create a new folder and enter the file:
mkdirmy-new-project&&cd$_
2. Generate project
2
yoangular-fullstack[app-name]
At the beginning of the installation, you will choose to install more, such as socketio and mongoose
3. Start the project
grunt serve
If the project starts successfully, it will automatically open in the default browser.
Demo: http://fullstack-demo.herokuapp.com/
Git: https://github.com/DaftMonk/generator-angular-fullstack (other functions can be accessed here)