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
Requires
- php: >=8.4
- ext-ctype: *
- ext-iconv: *
- doctrine/dbal: ^3.10.3
- doctrine/doctrine-bundle: ^2.18
- doctrine/doctrine-migrations-bundle: ^3.5.0
- doctrine/orm: ^3.5.2
- for/http-middleware-psr15-adapter: >=2
- league/csv: ^9.27
- phpdocumentor/reflection-docblock: ^5.6.3
- phpstan/phpdoc-parser: ^2.3
- ratchet/pawl: ^0.4.3
- ratchet/rfc6455: ^0.4.0
- ratchetio/ratchetio: >=0.4.1
- react/event-loop: >=1.5
- react/http: >=1.11
- react/socket: >=1.16
- react/stream: >=1.4
- symfony/asset: 7.2.*
- symfony/asset-mapper: 7.2.*
- symfony/console: 7.2.*
- symfony/doctrine-messenger: 7.2.*
- symfony/dotenv: 7.2.*
- symfony/expression-language: 7.2.*
- symfony/flex: ^2.8.2
- symfony/form: 7.2.*
- symfony/framework-bundle: 7.2.*
- symfony/http-client: 7.2.*
- symfony/intl: 7.2.*
- symfony/mailer: 7.2.*
- symfony/mime: 7.2.*
- symfony/monolog-bundle: ^3.10
- symfony/notifier: 7.2.*
- symfony/process: 7.2.*
- symfony/property-access: 7.2.*
- symfony/property-info: 7.2.*
- symfony/runtime: 7.2.*
- symfony/security-bundle: 7.2.*
- symfony/serializer: 7.2.*
- symfony/stimulus-bundle: ^2.30.0
- symfony/string: 7.2.*
- symfony/translation: 7.2.*
- symfony/twig-bundle: 7.2.*
- symfony/ux-turbo: ^2.30.0
- symfony/validator: 7.2.*
- symfony/web-link: 7.2.*
- symfony/yaml: 7.2.*
- textalk/websocket: ^1.6.3
- twig/extra-bundle: ^2.12|^3.21
- twig/twig: ^2.12|^3.21.1
- webmozart/assert: ^1.12
Requires (Dev)
- deptrac/deptrac: ^3.0
- doctrine/doctrine-fixtures-bundle: ^4.3
- friendsofphp/php-cs-fixer: ^3.89
- phpunit/phpunit: ^12.4.1
- symfony/browser-kit: 7.2.*
- symfony/css-selector: 7.2.*
- symfony/debug-bundle: 7.2.*
- symfony/maker-bundle: ^1.64
- symfony/phpunit-bridge: ^7.3.4
- symfony/stopwatch: 7.2.*
- symfony/web-profiler-bundle: 7.2.*
Conflicts
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
- 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
- Frontend: http://localhost:8383/ai-test.html
- Code Coverage: http://localhost:8383/coverage/
- PHPMyAdmin: http://localhost:8484/
- Login:
root
- Password:
root
- Login:
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