A CRUD (Create, Read, Update, Delete) website in the form of a to-do list using the Laravel framework.
Link: https://crud-todo-list-web-production.up.railway.app/
- XAMPP installed
- MySQL installed
- Composer for PHP installed
Make sure that you have zip
, fileinfo
, mysqli
extension enabled, and openssl
disabled in the php.ini
file.
First, we have to install Laravel.
-
Open terminal, then run the following command:
composer global require laravel/installer
-
Navigate to
xampp\htdocs\dashboard
, and run:laravel new [project name]
-
Select
none
for starter kit (we will install Breeze later) andpest (0)
for the testing framework.
-
Open the
composer.json
file and add this configuration (if you're on Windows):"config": { "platform": { "ext-pcntl": "8.3", "ext-posix": "8.3" } }
-
Copy
.env.example
and rename it to.env
, then adjust theDB_CONNECTION
according to your database (assuming you have already created a database in phpMyAdmin). -
Check if tables like
users
,password_resets
, andmigrations
exist in your database. If these tables exist, the database connection and migration are working properly. -
Generate an application encryption key:
php artisan key:generate
Run the following commands:
composer require laravel/breeze --dev
php artisan breeze:install
Run the following commands:
npm install
-
Make sure Apache and MySQL are running in XAMPP.
-
Open two different terminals and run the following commands:
Terminal 1:
npm run dev
Terminal 2:
php artisan serve
Now, you can access your web through the APP_URL
shown in the terminal where you ran npm run dev
.