6fa4759520807379be428b8094977429ce3f1911
art-get-arrays-jwt-springsecurity-angular
JSON Web Token (JWT) with Spring Security And Angular - Tutorial from Get Arrays (Udemy)
Notes
Section 19: HTML Template
134. Configuring routes
- Generate AppRoutingModule
ng generate module app-routing --flat --module=app
- Modify
app-routing.module.ts
Section 29: Security Management - Front End
199. Unsubscribe using Subsink library
- Install SubSink
npm install subsink --save
- Use it
Section 30: Deployment
202. Creating EC2 instance
Create EC2 instance with custom security rules
- open port 80, 5000, 443(ssh) for everyone
203. Configure EC2 instance
- Install apache web server
sudo service httpd start-> service not foundsudo yum -y install httpd-> OKsudo service httpd status-> running- Go to EC2 public URL -> Apache Server Default Page
- Test work
- Navigate to server content
cd /var/www/html
- create sample html file
sudo nano index.html<h1>Welcome to AWS Apache server</h1>- Ctrl+O
- Ctrl+X
- Go to EC2 public URL -> Our web page
- Navigate to server content
- Install Java
sudo amazon-linux-extras install java-openjdk11
- Install MySQL
sudo wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpmsudo wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpmsudo yum localinstall mysql57-community-release-el7-11.noarch.rpmsudo yum install mysql-community-server
- Start MySQL
sudo systemctl start mysqld.servicesudo systemctl status mysqld.service- Check for temporarily root password
sudo grep 'temporary password' /var/log/mysqld.logA temporary password is generated for root@localhost: idy7c#>jEetF
sudo mysql_secure_installation- new password:
Supp0rtP0rta! - No for other questions
- new password:
- Configure mysql
sudo mysql -u root -p-> enter passwordshow databases;create database support_portal;create user 'support_portal_user'@'localhost' identified by 'Supp0rt_Porta!_P@ssword';grant all privileges on support_portal.* to 'support_portal_user'@'localhost';
Description
Languages
HTML
38.2%
Java
26.2%
TypeScript
20.7%
CSS
9.3%
SCSS
5.2%
Other
0.4%