How rakesh-ns/java-fse works
Repository Scope
This is a week-organized training repository, not a single deployable product. It contains independent Java exercises, Spring/Spring Boot applications, two standalone microservices, and React examples. Each Maven or npm project is built and run independently; there is no top-level application entry point or shared build.
Foundational Java Exercises
Week 1–2 projects demonstrate isolated language, algorithm, testing, SQL, and design-pattern concerns. Console entry points are embedded in individual classes rather than a common launcher.
• Factory-method document creation: Week1/FactoryMethodPatternExample/Main.java, Week1/FactoryMethodPatternExample/DocumentFactory.java
• Singleton logging: Week1/SingletonPatternExample/Logger.java, Week1/SingletonPatternExample/Main.java
• Forecasting/search exercises: Week1/FinancialForecasting/FinancialForecast.java, Week1/EcommerceSearchExample/SearchDemo.java
• Database-programming artifacts are SQL scripts, separate from Java applications: Week1/PL_SQL_Programming/StoredProcedures.sql, Week1/PL_SQL_Programming/ControlStructures.sql
Spring Data and Service-Layer Examples
The ORM/library projects establish a layered Spring pattern: application bootstrap → service → repository → domain model/database. Repository interfaces form the persistence boundary; configuration and schema resources define runtime database behavior.
• Library flow: Week2/library-management/src/main/java/com/library/library_management/LibraryManagementApplication.java, Week2/library-management/src/main/java/com/library/service/BookService.java, Week2/library-management/src/main/java/com/library/repository/BookRepository.java
• Country ORM flow: Week2/orm-learn/src/main/java/com/cognizant/ormlearn/OrmLearnApplication.java, Week2/orm-learn/src/main/java/com/cognizant/ormlearn/service/CountryService.java, Week2/orm-learn/src/main/resources/schema.sql
• Expanded country/stock persistence example: Week3/orm-learn/src/main/java/com/cognizant/service/CountryService.java, Week3/orm-learn/src/main/java/com/cognizant/repository/StockRepository.java
HTTP API and Security Boundary
Week 4 evolves the Spring examples into controller-driven HTTP services. Controllers are the external request boundary, services hold country-related application logic, and the JWT project adds centralized security configuration plus authentication endpoints.
• Basic API: Week4/spring-learn/src/main/java/com/cognizant/springlearn/controller/CountryController.java, Week4/spring-learn/src/main/java/com/cognizant/springlearn/service/CountryService.java
• JWT-enabled API: Week4/spring-learn_jwt/src/main/java/com/cognizant/spring_learn_jwt/config/SecurityConfig.java, Week4/spring-learn_jwt/src/main/java/com/cognizant/spring_learn_jwt/controller/AuthenticationController.java, Week4/spring-learn_jwt/src/main/java/com/cognizant/spring_learn_jwt/controller/CountryController.java
Microservice Boundary
Week 5 contains two separately packaged Spring Boot services: account and loan. Each owns its executable bootstrap, controller, domain model, Maven build, and application properties. The tree shows no gateway, discovery service, shared library, or explicit inter-service client, so they should be treated as independently runnable APIs.
• Account service: Week5/Microservices/account/src/main/java/com/cognizant/account/AccountApplication.java, Week5/Microservices/account/src/main/java/com/cognizant/account/controller/AccountController.java
• Loan service: Week5/Microservices/loan/src/main/java/com/cognizant/loan/LoanApplication.java, Week5/Microservices/loan/src/main/java/com/cognizant/loan/controller/LoanController.java
React Client Exercises
Week 5–6 frontend projects are independent React applications, conventionally bootstrapped from src/index.js into App.js; feature components are local composition boundaries. They include no visible backend integration layer in the tree.
• Dashboard composition: Week5/academy-dashboard/src/index.js, Week5/academy-dashboard/src/App.js, Week5/academy-dashboard/src/Components/CohortDetails.js
• Blog/post rendering: Week5/blogapp/src/App.js, Week5/blogapp/src/Posts.js, Week5/blogapp/src/Post.js
• Interactive examples: Week6/eventexamplesapp/src/Components/CurrencyConvertor.js, Week6/ticketbookingapp/src/Components/LoginControl.js
Runtimes and Infrastructure
Java projects use Maven (pom.xml, often Maven Wrapper) and Spring/Spring Boot conventions. React projects use Node.js/npm (package.json, package-lock.json) with static assets under public/. Persistence-related runtime settings reside in Spring resource files such as Week3/orm-learn/src/main/resources/application.properties; the repository does not expose deployment manifests, cloud infrastructure, external API configuration, or a shared production environment.
Main entry points: SecurityConfig.java JWT security config · BookService.java Book service · CountryService.java Country ORM service · Posts.js Posts composition
Components 28
Foundational Exercises
Independent Java and SQL exercises.
- Factory method runner
Week1/FactoryMethodPatternExample/Main.java - Document factory
Week1/FactoryMethodPatternExample/DocumentFactory.java - Singleton logger runner
Week1/SingletonPatternExample/Main.java - Logger singleton
Week1/SingletonPatternExample/Logger.java - Forecasting and search · Standalone algorithm and search demonstrations.
Week1/FinancialForecasting/FinancialForecast.java - PL/SQL scripts · Stored procedures and control-structure exercises.
Week1/PL_SQL_Programming/StoredProcedures.sql
Spring Data Examples
Layered persistence examples.
- Library bootstrap
Week2/library-management/src/main/java/com/library/library_management/LibraryManagementApplication.java - Book service
Week2/library-management/src/main/java/com/library/service/BookService.java - Book repository
Week2/library-management/src/main/java/com/library/repository/BookRepository.java - Country ORM bootstrap
Week2/orm-learn/src/main/java/com/cognizant/ormlearn/OrmLearnApplication.java - Country ORM service
Week2/orm-learn/src/main/java/com/cognizant/ormlearn/service/CountryService.java - Country schema
Week2/orm-learn/src/main/resources/schema.sql - Country and stock persistence · Expanded Week 3 ORM persistence example.
Week3/orm-learn/src/main/java/com/cognizant/repository/StockRepository.java
HTTP APIs
Controller and security-focused Spring exercises.
- Country API controller
Week4/spring-learn/src/main/java/com/cognizant/springlearn/controller/CountryController.java - Country API service
Week4/spring-learn/src/main/java/com/cognizant/springlearn/service/CountryService.java - JWT security config
Week4/spring-learn_jwt/src/main/java/com/cognizant/spring_learn_jwt/config/SecurityConfig.java - Authentication controller
Week4/spring-learn_jwt/src/main/java/com/cognizant/spring_learn_jwt/controller/AuthenticationController.java - Secured country controller
Week4/spring-learn_jwt/src/main/java/com/cognizant/spring_learn_jwt/controller/CountryController.java
Week 5 Microservices
Independently packaged Spring Boot APIs.
- Account service · Independently runnable microservice.
Week5/Microservices/account/src/main/java/com/cognizant/account/AccountApplication.java - Account controller
Week5/Microservices/account/src/main/java/com/cognizant/account/controller/AccountController.java - Loan service · Independently runnable microservice.
Week5/Microservices/loan/src/main/java/com/cognizant/loan/LoanApplication.java - Loan controller
Week5/Microservices/loan/src/main/java/com/cognizant/loan/controller/LoanController.java
React Exercises
Independent npm client projects.
- Academy dashboard
Week5/academy-dashboard/src/App.js - Cohort details
Week5/academy-dashboard/src/Components/CohortDetails.js - Blog app
Week5/blogapp/src/App.js - Posts composition
Week5/blogapp/src/Posts.js - Post renderer
Week5/blogapp/src/Post.js - Interactive UI examples · Currency conversion and login-control exercises.
Week6/eventexamplesapp/src/Components/CurrencyConvertor.js
Connections 15
- Factory method runner → Document factory: creates documents
- Singleton logger runner → Logger singleton: uses
- Library bootstrap → Book service: boots
- Book service → Book repository: persists books
- Country ORM bootstrap → Country ORM service: boots
- Country ORM service → Country schema: uses schema
- Country and stock persistence → Country schema: persistence model
- Country API controller → Country API service: handles requests
- JWT security config → Authentication controller: secures
- JWT security config → Secured country controller: secures
- Account service → Account controller: exposes
- Loan service → Loan controller: exposes
- Academy dashboard → Cohort details: composes
- Blog app → Posts composition: composes
- Posts composition → Post renderer: renders