Skip to content

canopy-network/launchpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Launchpad API

A comprehensive REST API for blockchain chain creation and management, built with Go and Chi router.

Features

  • Chain Management: Full CRUD operations for blockchain chains
  • Multi-Step Launch Process: Step-by-step chain configuration and deployment
  • Template System: Pre-built blockchain templates
  • Development Integration: GitHub repository connections
  • Virtual Pools: Bonding curve mechanics and trading
  • Asset Management: Media and documentation handling
  • Social Integration: Social media links and verification

Project Structure

launchpad/
├── cmd/server/           # Application entry points
├── internal/             # Private application code
│   ├── config/          # Configuration management
│   ├── handlers/        # HTTP request handlers
│   ├── models/          # Data models and DTOs
│   ├── repository/      # Data access layer
│   ├── server/          # HTTP server setup
│   ├── services/        # Business logic
│   └── validators/      # Request validation
├── pkg/                 # Public packages
├── tests/               # Test files
├── migrations/          # Database migrations
├── templates/           # Email templates
└── scripts/             # Development scripts

Quick Start

Local Development

  1. Configure environment:

    cp .env.example .env
  2. Start Tilt development environment:

    tilt up

    This starts all services with hot reloading. Press space to open the Tilt UI.

Database Migrations

This project uses Atlas for managing database migrations.

curl -sSf https://atlasgo.sh | sh

For complete migration documentation, see docs/MIGRATIONS.md

Quick Start

# Apply migrations and load fixtures
make migrate-setup
make load-fixtures

# Make schema changes
# 1. Edit schema.sql
# 2. Generate migration: make migrate-diff
# 3. Apply migration: make migrate-up

# Full database reset
make db-reset

Development

Code Structure

The application follows Clean Architecture principles:

  • Handlers handle HTTP requests and responses
  • Services contain business logic
  • Repositories handle data persistence
  • Models define data structures
  • Validators handle request validation