This Laravel Chirper Full Stack App was developed based on Laravel Bootcamp, and it is based on Inertia (as a bridge between backend and frontend) and React.js.
Before starting development server, the following actions must be executed in the working directory:
# install php dependency
composer install
# install vite dependency
npm install
cp .env.example .env
php artisan key:generate
Please make sure you have access to the database.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_db_name
DB_USERNAME=your_db_user_name
DB_PASSWORD=
To quickly set up a MySQL database on Docker
# pull image
docker pull mysql
# start a container
docker run --name <my_mysql_instance_name> -e MYSQL_ROOT_PASSWORD=<root_password> -p 3306:3306 -d mysql
php artisan migrate
To check the routes available, please run:
php artisan route:list
Run the development server:
php artisan serve
Run the Hot Module Replacement powered by Vite development server
npm run dev
The Laravel framework is open-sourced software licensed under the MIT license.