Skip to content

Instantly share code, notes, and snippets.

@thamaraiselvam
Last active July 7, 2019 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thamaraiselvam/d0e5b40ab4f79d47332e5f25f5c3afda to your computer and use it in GitHub Desktop.
Save thamaraiselvam/d0e5b40ab4f79d47332e5f25f5c3afda to your computer and use it in GitHub Desktop.
Morning Session:
Debug Applications faster:
☐ Angular -> Debug via Chrome Dev Tools
☐ NodeJS -> Auto Attachment
Angular :
Component Communication:
☐ Parent -> Child Via @Input
☐ Child -> Parent Via @ViewChild
☐ Child -> Parent Via @Output EventEmitters
☐ Child <-> Parent Via with Service
☐ State Management:
☐ More https://angularfirebase.com/lessons/sharing-data-between-angular-components-four-methods/
Authentication:
☐ Service Side -> Custom Tokens (JWT Tokens - https://medium.com/swlh/a-practical-guide-for-jwt-authentication-using-nodejs-and-express-d48369e7e6d4)
☐ Client Side -> LocalStorage + Service
Afternoon Session:
Deployments:
☐ Basic Information about EC2 and open terminal
MongoDB:
☐ Just Install
Node:
☐ Deploy with Node JS with help of PM2
Install PM2 -> hit command `pm2 start index.js` -> node app started in background
want to connect to keymetrics -> Signup http://pm2.keymetrics.io/ -> Login -> add app -> you will get instrcutions to link app
Angular
☐ Deploy Angular on Our Server with help of Nginx
Install Ngnix -> Refer here https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04-quickstart
Push to git from local machine -> login into server -> git pull -> npm install -> hit command `ng build --prod` -> cp dist folder to nginx serve folder usng following command -> cp -R dist /var/www/html/angular -> go to /etc/ngnix/sites-available/default file and add following configuration -> restart ngnix `systemctl restart ngnix`
server{
listen 80;
root /var/www/html/angular/contact-manager-client;
index index.html index.htm index.nginx-debian.html;
server_name locahost;
location / {
try_files $uri $uri/ /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment