HOW TO RUN THE PROJECT
-
Clone or download this project from GitHub
If cloning: git clone https://github.com/adraneia/todo_app_php.git
Or download ZIP and extract it -
Open the project folder in your terminal
Install PHP dependencies
composer install -
Install Node dependencies (optional, only if you are compiling assets)
npm install -
Create a new .env file
Copy the existing .env.example file and rename it to .env -
Configure the database inside .env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=root
DB_PASSWORD= -
Generate the Laravel key
php artisan key:generate -
Run database migrations
php artisan migrate -
Start the development server
php artisan serve -
Visit this URL in the browser:
http://127.0.0.1:8000
NOTES
- Make sure MySQL is running
- Run "migrate:fresh" if you want to reset the database during development