Follow the steps below to set up and run the app locally.
Prerequisites Before starting, make sure you have the following installed on your system:
- PHP (8.2 or higher)
- Composer (for PHP package management)
- Node.js and npm (for front-end dependencies)
- MySQL or MariaDB (for database)
- A local server environment (such as XAMPP or Herd)
Clone the repository to your local machine:
git clone https://github.com/Mentorg/Laravel-Task-Manager.git
cd Laravel-Task-Manager
Install the required PHP dependencies using Composer:
composer install
Install the necessary front-end dependencies with npm:
npm install
After installing the Node.js dependencies, run the following command to compile the front-end assets:
npm run dev
Run the database migrations to create the required tables:
php artisan migrate
Note: After running the command above you might get asked to create an SQLITE file, please type 'yes' and then move on with the rest.
You can also seed the database with some initial data:
php artisan db:seed
Option 1: Using Herd
If you're using Herd, open your browser and visit:
todo-list.test
Option 2: Using XAMPP or other local servers If you're using XAMPP or another server setup, follow these steps:
- Open a new terminal window.
- Run the following command to start the Laravel development server:
php artisan serve
- Open your browser and visit:
http://127.0.0.1:8000
Once the server is running, you can access the app through the provided URL:
For Herd: todo-list.test
For XAMPP: http://127.0.0.1:8000