It is the pet project that is API for events management.
- PHP 8.1.10
- Laravel 10
- Composer 2.4.1
- Mailpit (test sending mails)
For my project I used MySql
8.0 version.
-
Clone the project.
-
Install composer packages:
composer install
-
Rename
.env.example
into.env
(or make copy and rename it). Set database connection. -
Use command for making migrations:
php artisan migrate
- Run server:
php artisan serve
- Sing up and enjoy!
6.1. If you want to create fast a bunch of users, events and attendees, you can use Seeder for it. Run terminal command:
php artisan db:seed
Notice: all generated users has password password
- Login and logout for users with tokens.
- CRUD for events.
- CRUD for attendees.
- Sending mails for reminding users about events.
See all routes:
php artisan route:list
Send mails command manually:
php artisan app:send-event-reminder
Send mails automatically. It use Laravel schedule:
php artisan schedule:work
Sending mails is queueable, so you also need to use this command:
php artisan queue:work
I use Mailpit for testing.