Simple Front-end samples of consuming a REST service,
- Angular
- Angular with NgRX
- Angular with NgXS
- React (Vite)
Each can be started with (one at the time):
npm start
CTRL+C to stop the front-end server. Angular front-ends run on http://localhost:4200; the React app runs on http://localhost:3000
please note:
- Backend needs to be running, before starting the front-end.
- Use the npm start method, and not ng serve as the npm starter will setup the proxy to the api backend.
- Node 20 LTS or higher.
This angular samples needs a backend and I have included two versions, both are Spring Boot applications written in Kotlin. One is a generic implementation and one is a (web)flux version. They can be started with:
mvn spring-boot:run
CTRL+C to stop the backend server.
please note: Only start one at the time, they are both using port 8080.
- Java 21 or higher
- Maven 3.5 or higher