Skip to content

addval/finishd-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rituality Platform

A modern full-stack JavaScript application built with Node.js, React, PostgreSQL, and Sequelize in a monorepo architecture.

πŸš€ Tech Stack

Backend

  • Runtime: Node.js 20+
  • Framework: Express.js
  • Language: TypeScript
  • Database: PostgreSQL 16+
  • ORM: Sequelize
  • Caching: Redis (optional)
  • Authentication: JWT
  • Testing: Vitest
  • Validation: Joi/Zod

Frontend

  • Framework: React 18+
  • Language: TypeScript
  • Build Tool: Vite
  • State Management: Zustand + React Query
  • Routing: React Router v6
  • Testing: Vitest + React Testing Library
  • Styling: CSS (Tailwind-ready)

DevOps

  • Monorepo: pnpm workspaces
  • Containerization: Docker + Docker Compose
  • CI/CD: GitHub Actions
  • Code Quality: Biome
  • Version Control: Git with conventional commits

πŸ“ Project Structure

rituality-platform/
β”œβ”€β”€ .claude/                    # Claude Skills configuration
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ backend/               # Node.js/Express API
β”‚   └── frontend/              # React + TypeScript SPA
β”œβ”€β”€ packages/                  # Shared packages
β”‚   β”œβ”€β”€ shared-types/          # TypeScript types
β”‚   β”œβ”€β”€ shared-utils/          # Utility functions
β”‚   └── biome-config/          # Biome config
β”œβ”€β”€ docker/                    # Docker configuration
β”œβ”€β”€ docs/                      # Documentation
β”œβ”€β”€ .github/workflows/         # CI/CD pipelines
└── package.json               # Root package.json

πŸ› οΈ Installation

Prerequisites

  • Node.js 20+
  • pnpm 8+
  • PostgreSQL 16+
  • Redis (optional)

Quick Start

# Clone the repository
git clone <repository-url>
cd rituality-platform

# Install dependencies
pnpm install

# Copy environment files
cp .env.example .env
cp apps/backend/.env.example apps/backend/.env
cp apps/frontend/.env.example apps/frontend/.env

# Start development servers
pnpm dev

That's it! The application will be available at:

For detailed setup instructions, see Development Setup Guide

πŸ“ Available Scripts

Root Commands

pnpm dev              # Start both apps (dev mode)
pnpm build            # Build all apps
pnpm test             # Run all tests
pnpm test:coverage    # Generate coverage reports
pnpm lint             # Lint all code
pnpm format           # Format code

Backend Commands

pnpm --filter backend dev              # Start backend
pnpm --filter backend test             # Run tests
pnpm --filter backend db:migrate       # Run migrations
pnpm --filter backend db:seed          # Seed database

Frontend Commands

pnpm --filter frontend dev             # Start frontend
pnpm --filter frontend test            # Run tests
pnpm --filter frontend build           # Build for production

🐳 Docker

Using Docker is recommended for development:

# Start all services (PostgreSQL, Redis, Backend, Frontend)
docker-compose -f docker/docker-compose.yml up -d

# View logs
docker-compose -f docker/docker-compose.yml logs -f

# Stop services
docker-compose -f docker/docker-compose.yml down

πŸ§ͺ Testing

# Run all tests
pnpm test

# Run tests for specific app
pnpm --filter backend test
pnpm --filter frontend test

# Generate coverage reports
pnpm test:coverage

# Run tests in watch mode
pnpm --filter backend test:watch

πŸ“š Documentation

πŸ—οΈ Architecture

This project follows world-class best practices:

Backend

  • MVC + Service Layer pattern
  • RESTful API design
  • TypeScript strict mode for type safety
  • Comprehensive error handling
  • Input validation on all endpoints
  • Transaction management for data integrity
  • Migration-based schema management

Frontend

  • Feature-based component organization
  • Custom hooks for logic reuse
  • Context API for global state
  • React Query for server state
  • Optimized performance with code splitting
  • TypeScript for all components
  • Responsive design ready

Monorepo Benefits

  • Shared types between backend and frontend
  • Unified code quality standards
  • Simplified dependency management
  • Atomic commits across packages
  • Faster development with tooling

πŸ” Security

  • JWT authentication with refresh tokens
  • Rate limiting on public endpoints
  • CORS policies configured
  • Helmet.js for security headers
  • Input validation and sanitization
  • Password hashing with bcrypt
  • Environment variables for secrets
  • SQL injection prevention (Sequelize)

πŸš€ Deployment

Quick Deploy with Docker

# Build production images
docker build -f docker/Dockerfile.backend -t rituality-backend:latest .
docker build -f docker/Dockerfile.frontend -t rituality-frontend:latest .

# Run with Docker Compose
docker-compose -f docker/docker-compose.prod.yml up -d

See Deployment Guide for detailed instructions.

🀝 Contributing

We welcome contributions! Please follow our guidelines:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feat/your-feature
  3. Commit with conventional commits: git commit -m "feat: add feature"
  4. Push to your branch: git push origin feat/your-feature
  5. Open a Pull Request

Commit Convention

We use conventional commits:

  • feat: - New feature
  • fix: - Bug fix
  • refactor: - Code refactoring
  • docs: - Documentation changes
  • test: - Adding/updating tests
  • chore: - Maintenance tasks

πŸ“Š Code Quality

We maintain high code quality standards:

  • 80%+ test coverage
  • TypeScript strict mode
  • Biome for linting and formatting
  • Automated CI/CD checks
  • Code review required

πŸ“„ License

This project is licensed under the MIT License.

πŸ‘₯ Team

  • Development Team
  • Claude AI - Assisted development with Claude Skills

πŸ™ Acknowledgments

  • Built with modern web technologies
  • Inspired by industry best practices
  • Powered by pnpm workspaces

Made with ❀️ by the Rituality Platform Team

For questions or support, please open a GitHub Issue

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published