Skip to content

alan-turing-institute/AssurancePlatform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trustworthy & Ethical Assurance Platform

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.

Getting Started

Demo: Create Assurance Case with Goals, Claims and Strategies

Prerequisites

  • Docker and Docker Compose
  • Node.js (v20+) and pnpm (for local development without Docker)

Quick Start (Docker)

  1. Clone the repository:

    git clone https://github.com/alan-turing-institute/AssurancePlatform.git
    cd AssurancePlatform
  2. Copy the environment file and configure:

    cp .env.example .env.local
  3. Start the development environment:

    docker-compose -f docker-compose.development.yml up -d --build
  4. Access the application at http://localhost:3000

Environment Variables

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"

Development Commands

# 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 test

Local Development (without Docker)

If you prefer to run without Docker:

# Install dependencies
pnpm install

# Generate Prisma client
npx prisma generate 

# Run development server
pnpm run dev

Note: You'll need a PostgreSQL database running locally and update DATABASE_URL accordingly.

Production

For production deployment, use the production Docker Compose configuration:

docker-compose up -d --build

Documentation

Full documentation is available in the tea-docs/ directory. To run the documentation site locally:

cd tea-docs
pnpm install
pnpm start

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

Licence

This project is licensed under the MIT Licence. See the LICENCE file for details.

About

Project to facilitate creation of Assurance Cases

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages