⚙ Building full-stack web app on Heroku - Part 2

⚙ Building full-stack web app on Heroku - Part 2

Context

Following the part 1, here I just build a frontend with Angular to call my spring restful API and display the data.

1. Front-end with Angular

Example to follow

Use of Material style

https://material.angular.io/components/button/overview

2. Issues I faced

How to consume API data with Angular

CORS errors

Use a proxy config

"start": "ng serve --proxy-config proxy.config.json"

4. Deployment on Heroku

A lot of errors when deploying

partial fix with the following console line

npm i @angular/cli @angular-devkit/build-angular @angular/compiler-cli typescript --save-prod

npm link @angular/cli

Unfortunately, even when deploying on Netlify, it seems that a website deployed on those platforms is not allowed to link to another app.