techiediaries / angular-php-example Goto Github PK
View Code? Open in Web Editor NEWAngular 7/8/9 Application with PHP Back-End Example
Home Page: https://www.techiediaries.com/angular/angular-9-php-mysql-database/
Angular 7/8/9 Application with PHP Back-End Example
Home Page: https://www.techiediaries.com/angular/angular-9-php-mysql-database/
The excellent tutorial skips deployment and confused me
Finally got deployment working
Brief steps
NGINX
sudo vi /etc/nginx/sites-enabled/default
location /awvoicebe {
location ~* .(php|html|htm)$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
location /awvoice {
try_files $uri $uri/ /awvoice/index.html;
}
Edited in frontend\src\app\api.service.ts
PHP_API_SERVER = "http://192.168.1.150/awvoicebe";
DELETE Method restricted in NGINX
this.httpClient.delete not allowed ; change if interested
APACHE2
sudo a2enmod rewrite
sudo vi /etc/apache2/sites-available/000-default.conf
Append
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
create /var/www/html/.htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^awvoice/dashboard$ /awvoice/index.html [NC]
Hope this benefits someone!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.