56 lines
1.3 KiB
Markdown
56 lines
1.3 KiB
Markdown
# testgo5
|
|
|
|
Composable app E2E test
|
|
|
|
## Quickstart
|
|
|
|
```bash
|
|
# Clone the repo
|
|
git clone https://git.threesix.ai/jordan/testgo5.git
|
|
cd testgo5
|
|
|
|
# Install dependencies
|
|
./scripts/install.sh
|
|
|
|
# Start local development
|
|
./scripts/dev.sh
|
|
```
|
|
|
|
## Project Structure
|
|
|
|
```
|
|
testgo5/
|
|
├── services/ # Go API services
|
|
├── workers/ # Background workers
|
|
├── apps/ # Frontend applications
|
|
├── cli/ # CLI tools
|
|
├── packages/ # Shared TypeScript packages
|
|
├── pkg/ # Shared Go packages
|
|
└── scripts/ # Development scripts
|
|
```
|
|
|
|
## Scripts
|
|
|
|
| Script | Description |
|
|
|--------|-------------|
|
|
| `./scripts/dev.sh` | Start local development environment |
|
|
| `./scripts/install.sh` | Install all dependencies |
|
|
| `./scripts/quality.sh` | Run quality checks on all components |
|
|
| `./scripts/discover.sh` | List all components in the monorepo |
|
|
|
|
## Adding Components
|
|
|
|
Components are added via the rdev API:
|
|
|
|
```bash
|
|
# Add a Go service
|
|
curl -X POST $RDEV_API_URL/projects/testgo5/components \
|
|
-H "X-API-Key: $RDEV_API_KEY" \
|
|
-d '{"type": "service", "name": "auth-api"}'
|
|
|
|
# Add a React app
|
|
curl -X POST $RDEV_API_URL/projects/testgo5/components \
|
|
-H "X-API-Key: $RDEV_API_KEY" \
|
|
-d '{"type": "app", "name": "dashboard", "template": "app-react"}'
|
|
```
|