Skip to content

Conduit Implementation using a altra-Modern, cost-efficient starter kit for bootstrapped founders. Production-ready FastAPI + Lit stack for $10/month.

License

Notifications You must be signed in to change notification settings

neoforge-dev/neoforge-conduit

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ NeoForge

Modern Full-Stack Starter Kit for Bootstrapped Founders Zero to MVP with FastAPI + Lit, Optimized for Speed and Cost

Built with FastAPI Built with Lit Monthly Cost License

🎯 Why NeoForge?

Built for bootstrapped founders who need to:

  • Launch MVPs quickly without technical debt
  • Keep costs near zero during validation
  • Scale efficiently when product-market fit is achieved
  • Maintain flexibility for future growth

✨ Core Features

For Founders

  • πŸš€ Zero to MVP in under 1 hour
  • πŸ’° Costs under $15/month until scale needed
  • πŸ›  Modern stack without complexity
  • πŸ” Debug-friendly development
  • πŸ“ˆ Built-in analytics and user tracking

Technical Stack

Backend

  • ⚑️ FastAPI with async support
  • πŸ“¦ UV for ultra-fast package management
  • 🎯 Ruff for comprehensive linting
  • πŸ—ƒ SQLite β†’ PostgreSQL migration path
  • βœ… Pydantic v2 for validation

Frontend

  • 🎨 Lit 4.0 web components
  • 🌐 Browser-native features
  • πŸ“± PWA-ready configuration
  • πŸ”§ TypeScript for type safety
  • πŸ— Vite for building

Infrastructure

  • πŸš€ Single $10 DO droplet to start
  • πŸ“¦ Nomad for container orchestration
  • βš™οΈ Terraform for infrastructure
  • πŸ”„ GitHub Actions for CI/CD
  • 🌐 Cloudflare for CDN (free tier)

πŸš€ Quick Start

Prerequisites

  • Docker and Docker Compose
  • Make
  • Git

Development Setup

  1. Clone the repository:
git clone https://github.com/yourusername/neoforge.git
cd neoforge
  1. Initialize the development environment:
make setup  # Creates .env and builds Docker images
  1. Start the development environment:
make dev  # Starts all services with hot-reload

The API will be available at http://localhost:8000 with auto-reload enabled.

Common Development Tasks

# Run tests
make test           # Run all tests
make test-watch     # Run tests in watch mode

# Code quality
make lint           # Run all linters
make format         # Format code

# Database
make db-shell      # Open PostgreSQL shell
make redis-shell   # Open Redis shell

# Monitoring
make logs          # View service logs
make health        # Check service health

# Cleanup
make clean         # Remove all containers and cache

Development Environment

Docker Services

  • API: FastAPI application with hot-reload
  • Database: PostgreSQL 15
  • Redis: For caching and rate limiting
  • Test: Separate container for running tests

Health Checks

All services include health checks:

  • API: HTTP check on /health endpoint
  • PostgreSQL: Connection check with pg_isready
  • Redis: Ping check

View detailed health status:

make health

Testing Strategy

Tests run in a dedicated container with:

  • Isolated test database
  • Factory Boy for test data
  • Async test support
  • Full coverage reporting
# Run specific test file
docker compose -f backend/docker-compose.dev.yml run --rm test pytest tests/api/test_users.py -v

# Run with coverage report
docker compose -f backend/docker-compose.dev.yml run --rm test pytest --cov=app --cov-report=html

Project Structure

neoforge/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/           # API endpoints
β”‚   β”‚   β”œβ”€β”€ core/          # Core functionality
β”‚   β”‚   β”œβ”€β”€ models/        # SQLModel models
β”‚   β”‚   └── services/      # Business logic
β”‚   β”œβ”€β”€ tests/
β”‚   β”‚   β”œβ”€β”€ factories.py   # Test data factories
β”‚   β”‚   └── conftest.py    # Test configuration
β”‚   └── docker-compose.dev.yml
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html
β”‚   └── js/
β”‚       └── components/    # Web components
└── Makefile              # Development tasks

Best Practices

  • Use make commands for common tasks
  • Run tests before committing: make test
  • Format code: make format
  • Check health before deploying: make health
  • Use make help to see all available commands

Troubleshooting

  1. Services won't start:

    make clean   # Remove all containers
    make setup   # Rebuild everything
    make dev     # Start fresh
  2. Tests failing:

    make logs    # Check service logs
    make health  # Verify service health
  3. Database issues:

    make db-shell  # Inspect database directly

πŸ“š Documentation

🀝 Contributing

Contributions are welcome! Please read our Contributing Guide.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ❀️ for Bootstrapped Founders Website · Documentation · Discord

Getting Started Β· Architecture Β· Best Practices Β· Deployment Β· Security Β· Monitoring Β· Backend API Β· Frontend Β· Infrastructure

About

Conduit Implementation using a altra-Modern, cost-efficient starter kit for bootstrapped founders. Production-ready FastAPI + Lit stack for $10/month.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.6%
  • HTML 2.0%
  • Makefile 1.1%
  • Dockerfile 0.6%
  • HCL 0.5%
  • TypeScript 0.4%
  • Other 0.8%