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)
Similar Posts:
- Solve Error: MissingSchemaError: Schema hasn’t been registered for model “YourModel”.
- Creating react webpack project through yeoman
- Mongodb access control is not enabled for the database
- [Solved] Node Error: DeprecationWarning: current URL string parser is deprecated and Port 3000 is already in use
- [Solved] Nodejs Error: Cannot find module ‘express’
- No package mongodb-org available. [How to Solve]
- [Solved] Mongodb Error: Failed to start mongodb.service: Unit mongodb.service is masked.
- Sockjs node/info?T = error reporting solution
- Unable to start mongod after installing mongodb in Ubuntu
- Node: background NPM start error: mongooseserverselection error: connect econnrefused 127.0.0.1:27017