Software EngineeringBackendFrontendIn progress
Multi Tenant SaaS ERP Platform
An Odoo style ERP that many companies can share as one SaaS app. Built on Spring Boot 4 and Next.js 16, starting with the identity core: JWT sessions, Google sign in, custom roles with fine grained permissions, organisation invites, and an OTP protected super admin.
Spring BootNext.jsModular Monolith
This is an ERP (Enterprise Resource Planning) platform in the spirit of Odoo: one system that a shop, a factory or a service company can use for inventory, sales, purchasing, accounting and point of sale. It is built as a multi tenant SaaS: one running app and one database serve many separate businesses, and each business only ever sees its own data.
Before building any business modules, the project builds the hardest shared part first: identity and tenancy. That means who you are, which organizations you belong to, what you're allowed to do in each, and how to keep all of that secure. The backend is Java 21 with Spring Boot 4 and PostgreSQL. The frontend is Next.js 16 with React 19 and is available in English, Sinhala and Tamil.
Reliability
All schema changes go through Flyway migrations, so the database can be rebuilt the same way every time. Redis backed checks are designed to degrade instead of crash: if Redis can't record a revoked session, the app logs a warning and the token stops working when it expires. Spring Boot Actuator is included for health checks. Docker Compose runs PostgreSQL 16 and Redis 7 for local development.
Security
JWT access + refresh tokens (refresh tokens SHA-256 hashed in Redis, single use); server side session revocation, including "sign out everywhere else"; Google OAuth 2.0 with state checking; BCrypt password hashing; role based access control with custom roles and fine grained permissions enforced by Spring method security; OTP protected super admin login; Redis rate limiting on login, registration, Google sign in, self join and super admin login; a startup guard that rejects a weak JWT secret; and an audit log of security events that admins can search.
Observability
Every important security action is written to an audit log table (who, what, which organization, when), with a searchable, paged audit log API for admins. Spring Boot Actuator is included. There is no metrics dashboard yet.
Testing
401 backend tests (JUnit 5), counted in the repo. 40 test classes use Test containers to run against a real PostgreSQL and Redis. The Next.js frontend has Playwright end-to-end tests for sign-in and the home page, with the UI translated into English, Sinhala and Tamil.
Future improvements
• Add the first business modules: inventory, sales and point of sale (the POS checkout prototype already exists).
• Send real emails for verification and OTP. The current mailer classes log instead of sending.
• Add a frontend unit test runner alongside the Playwright tests.
• Add a Docker image and a deployment pipeline.