- provides OData v4.01 API for ocap-stats database
- built on laravel 10 + loadata 2
- only a thin layer of eloquent models and lodata traits
fnf-odata.devs.space
⤷ using fnf-stats database
⤷ using OCAP2 data from FNF
- PHP 8.1 or later
- access to ocap-stats database (mysql/mariadb)
You should use env vars (env.example) to configure the database host/user/pw/dbname, but you only need to edit the DB_URL generally.
- docker-compose 2 or later
- composer 2.2 or later
Install composer dependencies.
composer install
Create a .env file to enable laravel debug options.
APP_ENV=local
APP_KEY=
APP_DEBUG=true
LOG_LEVEL=debug
⚠ You need to connnect to an existing ocap-stats database.
To quickly spin up your own local database head over to ocap-stats/SETUP.md for instructions.
docker-compose up
php artisan db:show
docker-compose down
docker-compose up -d
docker-compose down -v
docker system prune -a -f --volumes
composer install
php artisan route:clear
php artisan config:clear
php artisan cache:clear
docker-compose build --no-cache
docker-compose up -d