> ## Documentation Index
> Fetch the complete documentation index at: https://docs.optimism.io/llms.txt
> Use this file to discover all available pages before exploring further.

# L2 Rollup Code Examples

> Complete working code examples for the Create L2 Rollup tutorial

This page contains complete working code examples for the Create L2 Rollup tutorial. You can find all the code and configuration files in the [create-l2-rollup-example directory](https://github.com/ethereum-optimism/optimism/tree/develop/docs/public-docs/create-l2-rollup-example/).

<Info>
  For the complete working implementation, visit the [Create L2 Rollup code on GitHub](https://github.com/ethereum-optimism/optimism/tree/develop/docs/public-docs/create-l2-rollup-example/).
</Info>

## Quick Start

```bash theme={null}
# Copy and configure environment
cp .example.env .env
# Edit .env with your values

# Run the automated setup
make init    # Download tools
make setup   # Deploy and configure
make up      # Start services
```

## Files

* `.example.env` - Environment configuration template
* `docker-compose.yml` - Service orchestration
* `Makefile` - Automation commands
* `scripts/` - Setup and utility scripts
* `README.md` - Detailed documentation

## About This Code

This implementation provides:

* Automated deployment of OP Stack L2 contracts
* Complete Docker-based service orchestration
* Working examples of all OP Stack components
* Production-ready configuration patterns

For detailed setup instructions, see the [Create L2 Rollup tutorial](/chain-operators/tutorials/create-l2-rollup/create-l2-rollup).
