This project serves as a demo, built with Laravel.
The most relevant files for this project and the requirements are located at:
- Controller: app/Http/Controllers/Api/SendLogController.php
- Model: app/Models/Api/SendLog.php
- Database Migrations: database/migrations
- Database Seeders: database/seeders
- clone repo to localhost
- cd to directory
-
run
composer install
-
create database and copy details to the .env file:
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE={db_name} DB_USERNAME={username} DB_PASSWORD={password}
-
run the following command to create project tables in mysql and seed with dummy data
php artisan demo:install
After installion you can run php artisan serve
and then you can open the page at http://localhost:8000/api/v1/messages-log?date_from=2021-07-07&date_to=2021-10-15 to make sure it is running correctly
The frontend is built using Angular and can be found here: https://github.com/ba1948/demo-app-FE