Skip to content

fabioluiz1/rails-react-terraform-aws

Repository files navigation

Rewards Redemption App

A full-stack rewards redemption web application demonstrating architecture, coding quality, testing, and DevOps practices.

Stack: React + TypeScript + Ruby on Rails API + PostgreSQL + Docker + AWS ECS/Fargate

See architecture.md for technical decisions, design rationale, and shipping plan.

Quick Start

Prerequisites

  • Docker and Docker Compose
  • mise (tool version manager)

Install mise:

curl https://mise.run | sh

Local Development

# Install project tools
mise install

# Start all services (database, API, web)
docker-compose up

# Setup pre-commit hooks
mise run setup

Deployment to AWS

First-Time Infrastructure Setup

⚠️ Read the AWS Setup Guide for complete prerequisites and follow the Deployment Steps.

Continuous Deployment

After infrastructure is set up, deployments are automatic on push to deploy:

git push origin deploy

GitHub Actions will:

  1. Build and push Docker images to ECR
  2. Run database migrations
  3. Update ECS Fargate services
  4. Output service URLs

Cleanup

Destroy all AWS infrastructure:

cd terraform
AWS_PROFILE=admin terraform destroy -auto-approve

Note: Requires AdministratorAccess profile. See AWS Setup Guide for profile requirements.

Documentation

Getting Started

  • README.md (this file) - Onboarding and quick start
  • architecture.md - Technical architecture and design decisions

Infrastructure & Deployment

Application Components

Contributing

Start work on a GitHub issue:

/start-issue <issue-number> [main|stack]

Creates a worktree, fetches issue details, generates a plan, and commits setup.

Project Structure

rewards-app/
├── README.md                     # This file - onboarding guide
├── architecture.md               # Technical architecture and decisions
├── .mise.toml                    # Tool version management
├── .pre-commit-config.yaml       # Git hooks
├── docker-compose.yml            # Local development services
├── .github/workflows/            # CI/CD pipelines
├── docs/                         # Documentation
│   ├── aws-setup.md             # AWS infrastructure setup
│   └── deployment.md            # Deployment operations
├── terraform/                    # Infrastructure as Code
│   ├── README.md
│   └── modules/
├── api/                          # Rails API backend
│   ├── Dockerfile
│   └── README.md
└── web/                          # React frontend
    ├── Dockerfile
    └── README.md

Support

For issues or questions:

About

Full-stack rewards redemption app — React + Rails API + PostgreSQL + Docker + AWS ECS/Fargate (Terraform), built with an agentic Claude Code harness

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors