How vivekkakadiya/organica works
Project type and purpose
• Organica is a full-stack e-commerce web application.
• Backend: Spring Boot (monolithic REST API) with JWT-based authentication/authorization.
• Frontend: React.js single-page application.
• Database: MySQL.
• External service: Razorpay for payment processing.
File structure
• Top level:
• Client/ – React source, assets, build config (package.json, Dockerfile)
• Server/ – Spring Boot app, Maven wrapper, configs, controllers, services, repos, entities, security setup, tests
• init/init.sql – DB schema/seeding
• docker-compose.yml – orchestrates Client, Server, MySQL
• Client/
• public/ – static HTML, manifest, images
• src/ – React components (Header, Footer, CartComponent, HomeComponent, ShopComponent), pages (Cart, Checkout, Home, Login, Signup, ProductDetails, Shop), Axios helper, Router.
• Server/
• config/ – ApplicationConfig, CORS, JWT filter & service, Spring Security config
• controllers/ – REST endpoints: CartController, PaymentController, ProductControllers, UserController
• services/ & services/impl/ – business logic
• repositories/ – JPA repos for User, Product, Cart, CartDetails
• entities/ – JPA entities & DTO payloads
• application.properties – DB & server config
README for additional insights
• Confirms tech stack, features (auth, cart, orders, Razorpay).
• Provides run instructions for local/dev environment.