Angular 22 starter application with Node.js and Spring Boot backends.
| Project | Technology |
|---|---|
| frontend-angular | Angular 22 |
| backend-node | Node.js + TypeScript |
| backend-springboot | Java + Spring Boot |
frontend-angular
|
+-- backend-node
|
+-- backend-springboot
π https://angular.ganatan.com
git clone https://github.com/ganatan/angular-node-java.git
cd frontend-angular
npm install
npm startOpen:
http://localhost:4200
Step-by-step tutorials are available on Ganatan:
π«π· https://www.ganatan.com/tutorials
π¬π§ https://www.ganatan.com/en/tutorials
frontend-angular/
backend-node/
backend-springboot/
File:
frontend-angular/src/environments/environment.ts
Example:
useDatabase: false,
backend: 'http://localhost:3000',| Value | Description |
|---|---|
| false | Frontend mock data |
| true | Backend API |
File:
.env
Example:
PORT=3000
DB_CLIENT=mock| Value | Description |
|---|---|
| mock | Mock data |
| pg | PostgreSQL |
| mysql | MySQL |
GET /continents
GET /countries
GET /cities
GET /persons
GET /professions
npm install
npm outdatednpm startOpen:
http://localhost:4200
npm run buildnpm run lintnpm run testnpm run coveragecd backend-node
npm installnpm startOpen:
http://localhost:3000
npm run buildcd backend-springboot
mvn spring-boot:runOpen:
http://localhost:8080
mvn clean packageDanny