Skip to content

Develop a REST API with basic CRUD operations and integrated search using React and Spring Boot πŸŒ±πŸš€

Notifications You must be signed in to change notification settings

yerus1/Spring-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Java
Spring Boot
PostgreSQL
@Service
public class ProductService {
  private final List<String> categories = Arrays.asList(
    "Electronics", "Clothing", "Books", "Home & Kitchen", "Beauty"
  );

  @Autowired
  private ProductRepository productRepo;

  public ProductProfile getProductProfile() {
    return ProductProfile.builder()
      .popularCategory("Electronics")
      .availableCategories(this.categories)
      .totalProducts(productRepo.countAll())
      .outOfStockProducts(productRepo.countOutOfStock())
      .build();
  }
}

About

Develop a REST API with basic CRUD operations and integrated search using React and Spring Boot πŸŒ±πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published