- Make sure you have PHP installed on your system. You can download it from the official PHP website.
- Install Composer, the PHP package manager. You can find installation instructions on the Composer website.
- Install a database server like MySQL or PostgreSQL, and create a new database for your Laravel application.
- Set up a mail server or use a service like Mailtrap for testing email functionality.
git clone https://github.com/Cipfahim/tasks-app.git
cd tasks-app
Rename the .env.example file in the root directory to .env and configure the necessary environment variables, including database and mail settings. Update the following lines in the .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
MAIL_MAILER=smtp
MAIL_HOST=your_smtp_host
MAIL_PORT=your_smtp_port
MAIL_USERNAME=your_smtp_username
MAIL_PASSWORD=your_smtp_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=your_email_address
MAIL_FROM_NAME="${APP_NAME}"
Open a terminal or command prompt, navigate to your project directory, and run the following command to install the required PHP dependencies defined in composer.json:
composer install
Run the database migrations to create the necessary tables in your database:
php artisan migrate --seed
Start the development server by running the following command:
php artisan serve
Application should now be running locally. Open your web browser and go to http://localhost:8000 (or the URL shown in the terminal after running php artisan serve) to access your application.
php artisan queue:work