TEA (Trustworthy & Ethical Assurance) Platform is a full-stack web application for creating and sharing structured assurance cases. Built with Next.js, React, TypeScript, and Prisma ORM.
Demo: Create Assurance Case with Goals, Claims and Strategies
-
Clone the repository:
git clone https://github.com/alan-turing-institute/AssurancePlatform.git cd AssurancePlatform -
Copy the environment file and configure:
cp .env.example .env.local
-
Start the development environment:
docker-compose -f docker-compose.development.yml up -d --build
-
Access the application at http://localhost:3000
Create a .env.local file with the following variables:
# Database
DATABASE_URL="postgresql://tea_user:tea_password@postgres:5432/tea_dev"
# Authentication
NEXTAUTH_SECRET="your-secret-key" # Generate with: openssl rand -base64 32
NEXTAUTH_URL="http://localhost:3000"
# GitHub OAuth (optional)
GITHUB_APP_CLIENT_ID="your-github-client-id"
GITHUB_APP_CLIENT_SECRET="your-github-client-secret"# Start all services
docker-compose -f docker-compose.development.yml up -d
# View logs
docker-compose -f docker-compose.development.yml logs -f
# Stop all services
docker-compose -f docker-compose.development.yml down
# Run database migrations
docker exec tea_app_dev npx prisma migrate dev
# Run tests
docker exec tea_app_dev pnpm run testIf you prefer to run without Docker:
# Install dependencies
pnpm install
# Generate Prisma client
npx prisma generate
# Run development server
pnpm run devNote: You'll need a PostgreSQL database running locally and update DATABASE_URL accordingly.
For production deployment, use the production Docker Compose configuration:
docker-compose up -d --buildFull documentation is available in the tea-docs/ directory. To run the documentation site locally:
cd tea-docs
pnpm install
pnpm startContributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT Licence. See the LICENCE file for details.