- Clone this repository.
- Install the dependencies. Run
composer install
command, then runnpm install
command. - Create
.env
file by simply copying the.env.example
file and rename it. - Configure the
.env
file with your database connection, seeder configuration, mailer, etc. - Generate the application key with
php artisan key:generate
command. - Generate the database structure with this commands based on your preferences:
- Use
php artisan migrate
for creating / updating the database. - Use
php artisan db:seed
for seeding the database. - Use
php artisan migrate:fresh
for fresh installation. - Use
php artisan migrate:fresh --seed
for fresh installation and seeding the database.
- Use
Warning! If you use
php artisan migrate:fresh
command, all tables will be dropped and recreated. All data in the tables will be lost.
- Generate the app resources (public assets, like: styles, scripts, etc.) with Laravel Mix.
- In development, use
npm run dev
command. For watching the file changes (watch mode), usenpm run watch
command instead. - In production, use
npm run prod
command.
- In development, use
Note: Before running in watch mode, you need to start the application first.
- Finally, start the application with
php artisan serve
command.