Dont use this Repository on production. Its for learning purposes with ❤️ created.
Record your work or whatever activity with this Api Project.
install with composer
composer create-project benblub/activity-recorder
Clone or Download & unzip this Project.
run Composer with your Shell and install Project Depencies.
Setup Database credentials in your ENV
php bin/console doctrine:database:create php bin/console doctrine:migrations:migrate
Setup Database credentials in .env.test.
create test Database & Structure
php bin/console doctrine:database:create --env=test php bin/console doctrine:migrations:migrate --env=test
Start Transactions & Rollback between each Test. Not installed yet.. https://github.com/dmaicher/doctrine-test-bundle
The Functional & Integration tests require a mailserver aswell. Setup your Credentials in ENV.
Webserver configuration https://symfony.com/doc/current/setup/web_server_configuration.html
This Project creates your API. Now you can use any kind of App to interact with your API. Build your own or use a Generator from https://api-platform.com/docs/ Simply test your API visit http://localhost:8000/api