MEAN project using Angular cli (commands)
- Install the dependencies into node_modules folder.
#npm install
Angular cli
-
-
- Installing the Angular/cli globally
#[sudo] npm install -g @angular/cli - Updating the Angular/cli globally
#[sudo] npm uninstall -g angular-cli @angular/cli
#npm cache clean
#[sudo] npm install -g @angular/cli - Updating the Angular/cli locally #npm install –save-dev @angular/cli@latest
- Installing the Angular/cli globally
-
- Create new angular project (using Angular cli)
#ng new <Project name> - Run the project (build the source code)
#ng serve
Use MongoDB client – mongoose
- Install mongoose
#npm install –save mongoose
- Connecting to MongoDB
#mongoose.connect(<URI>://<Host>:<Port>/<Database-name>’); - Setup unique package on server
#npm install –save mongoose-unique-validator
Install Bootstrap (css framework)
#npm install –save bootstrap@3
Create new component using Angular cli
# ng generate component [Name]
OR
# ng g c NAME
# ng g c NAME –spec false (to prevent the creation of test file)
Ready to Solve Your Most Complex Technical Challenges?
Our senior advisors are ready to help you navigate the ever-evolving technology landscape with precision and expertise.
Schedule a ConsultationRelated Articles
Create a project in Angular
Type following command to create a new project: # ng new <PROJECT-NAME> It will ask “Would you like to add Angular routing?…
Install NodeJs and Angular CLI
How to Install NodeJs and Angular CLI Steps for installing NodeJS Open https://nodejs.org/ Download the LTS version and install it. ( *LTS…
Firebase hosting setup for Angular app
1. Firstly install node.js on your machine. # sudo apt-get install nodejs # sudo apt-get install npm 2. To install the firebase…