@Component
@Application
class TestApp {
    
    function main(): void {
        print("🚀 Hello from NovaLang!");
        print("✅ Application running successfully!");
        startServer();
    }
    
    function startServer(): void {
        print("🌐 Server started on http://localhost:8080");
        print("📡 API endpoints available:");
        print("   GET / - Welcome");
        print("   GET /health - Health check");
        print("✨ Ready to serve requests!");
    }
}

@Service
class UserService {
    
    function getUsers(): string {
        return "User service working!";
    }
    
    function createUser(name: string): string {
        return "Created user: " + name;
    }
}
