This project consists of an api in Laravel 9 connected to a React application, which manages the messaging of a community of neighbors. It includes authentication with the Sanctum package in Laravel, tokens, cookies... etc.
Use the package manager npm to install dependencies
npm iMove to the api folder and create an .env file based on the .env.example file I left in the root of the api folder. Create a new database according to your .env and then use composer to run migrations. (Open terminal in the api folder)
php artisan migrate || php artisan migrate:refresh Once the migrations have been executed, run the following commands in this order to populate the database with test data
php artisan db:seed --class=UserSeeder php artisan db:seed --class=MailSeeder Use the following command to start back app.
php artisan serveUse the following command to start front app.
npm startPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.