Chapter 4 : BFF Backend For Frontend
Build Backend Spring Java
- Please follow
And build Backend Spring Java with ALL tables provided in enteprise microservices sample table SQLs.
After "Build BFF Backend For Frontend" via Common Steps
Deploy full
emapi-BFF
backend for all tables.Compile and Run project
mvn -version
java -version
cd C:\work\saas-multi\BFF-backend-for-frontend\emapi-BFF
mvn package
java -jar app\dbrest\target\dbrest-1.0-SNAPSHOT.jar
- Verify Run Ok
2024-09-15T13:47:22.603+05:30 INFO 16392 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 9060 (http) with context path ''
2024-09-15T13:47:22.618+05:30 INFO 16392 --- [ main] c.e.emapi.app.EmDbRestAppRestSpringApp : Started EmDbRestAppRestSpringApp in 9.482 seconds (process running for 10.009)
Verify Service APIs
Open Swagger API explorer and test API endpoints
- Verify API endpoint URL in browser shows tenant data
[
{
"tenantId": 3,
"customerId": 2,
"tenantName": "Manipal - Pune Branch",
"beginDate": "2024-09-14",
"minOrderQuantity": 10,
"customizationRequired": 1,
"custMicrosvcType": "synchronous-webclient",
"customizationService": "tenant-2-validation-service",
"customizationPayload": "order_data"
}
]
- Use this backend as "BFF Backend" For Frontend Flutter Mobile App.
info
- Microservices - BFF Backend For Frontend building is complete.