camoo/camoo-ai

Camoo AI Platform

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

pkg:composer/camoo/camoo-ai

0.0.1 2025-10-22 16:32 UTC

This package is auto-updated.

Last update: 2025-10-22 16:34:39 UTC


README

Camoo AI - based on Symfony framework

This project is a fullstack Symfony application that demonstrates how to build a self-learning AI pipeline using Symfony 7.x, PHP 8.4, Docker, and various other tools and libraries. The application includes features such as AI model training, and data management. Feel free to explore the codebase and adapt it to your own needs! We hope you find it useful and inspiring. All contributions are welcome.

How to run the project

Prerequisites

  • Docker
  • Docker Compose
  • PHP 8.4
  • Symfony 7.x
  • Symfony CLI (optional, but recommended)
  • Composer (optional, but recommended)
  • PHPUnit

Steps to run the project

  1. Clone the repository
# Clone the repository
git clone htts://github.com/camoo/camoo-ai
cd camoo-ai

# Install dependencies
docker-compose exec camoo-ai composer install
# Or if you have composer installed locally
composer install

# Use make to install dependencies
make install

Bring up the project

docker-compose up -d --build
# Or if you have make installed
make up

Bring down the project

docker-compose down
# Or if you have make installed
make down

Start Websocket server

# 8086 is the port number, you can change it as needed
docker-compose exec camoo-ai php bin/console app:websocket:serve 8086

OR on production use nohup
php bin/console app:websocket:serve > /dev/null 2>&1 &

# stop the websocket server
pkill -f "php bin/console app:websocket:serve"

Test Websocket connection

npx wscat -c ws://localhost:8383/ws

# start sending messages
{"message":"Hello, AI!", "context": {}}

Test AI via CLI Command

# log into the container
docker-compose exec camoo-ai bash
# run the AI command
php bin/console app:chat
# start typing your messages
tell me a joke

Access the application

Access the terminal

docker-compose exec camoo-ai bash
# Or if you have make installed
make shell

log files

# Application logs
docker-compose exec camoo-ai tail -f var/log/dev.log

Run migration

docker-compose exec camoo-ai php bin/console doctrine:migrations:migrate --no-interaction
# Or if you have make installed
make migrate


# For test environment
docker-compose exec camoo-ai php bin/console doctrine:migrations:migrate --env=test --no-interaction
# Or if you have make installed
make migrate-test

# Optionally, you can also run the fixtures to populate the database with initial data
docker-compose exec camoo-ai php bin/console cache:clear --env=test
# Or if you have make installed
make fixtures

Run Unit tests

docker-compose exec camoo-ai composer test

# Or if you have phpunit installed locally
composer test

# Or if you have make installed
make test

Run PHP Cs Fixer / Linter

docker-compose exec camoo-ai composer lint

# Or if you have php-cs-fixer installed locally
composer lint
# Or if you have make installed
make lint

Run Deptrac analysis

docker-compose exec camoo-ai php vendor/bin/deptrac analyse --report-uncovered

# Or if you have deptrac installed locally
composer analyse

# Or if you have make installed
make analyse