SME Finance - todo-Mdb4-Angular-Pro project
** Install Nginx: Linux Server: URL: https://www.cyberciti.biz/faq/how-to-install-and-use-nginx-on-centos-7-rhel-7/
-
vi /etc/yum.repos.d/nginx.repo 1.1- then copy and paste: [nginx] name=nginx repo baseurl=http://nginx.org/packages/mainline/rhel/7/$basearch/ gpgcheck=0 enabled=1
-
sudo yum install nginx
-
systemctl enable nginx
-
systemctl start nginx
-
systemctl stop nginx
-
systemctl restart nginx
-
systemctl status nginx
-
firewall-cmd --permanent --zone=public --add-service=http
-
firewall-cmd --permanent --zone=public --add-service=https
-
firewall-cmd --reload
-
ss -tulpn
-
check by your web browser uning IP.
** Uninstall:
- yum remove nginx
//Build for deployment Angular Project:
- ng build --named-chunks
//mdbCharCounter and length into contenteditable Table
//Editable Table value duplicate during blur event prevent
//Idle Time Session out and auto signout
-
Install cmd: npm install bn-ng-idle
-
app.component.ts file funtion:
this.bnIdle.startWatching(1800).subscribe((res) => { if (res && jwtAuthenticationService.isUserLoggedIn()) { alert('Your Session has Expired!! Please Login Again to Proceed...'); this.router.navigate(['login']); } });//Get/Set Value from Reactive Form ----- cadDocumentUploadForm: FormGroup;
-
this.parameters.customerId = this.cadDocumentUploadForm.get("customerId")!.value;
-
this.cadDocumentUploadForm.controls.documentCode.setValue(reqDocCode);
-
this.cadDocumentUploadForm.controls.custInfoSearch.setValue('');
-
his.cadDocumentUploadForm.get("customerId")!.setValue(custCode);
//Docker his own tutorials: CMD/Terminal:
- docker run --name repo alpine/git clone https://github.com/arifultonu/todo-Mdb4-Angular-Pro
- docker cp repo:/git/getting-started/ .
- cd getting-started
- docker build -t docker101tutorial .
- docker run -d -p 80:80 --name docker-tutorial docker101tutorial
-