- Clone this repository.
- Install the dependencies. Run
composer installcommand, then runnpm installcommand. - Create
.envfile by simply copying the.env.examplefile and rename it. - Configure the
.envfile with your database connection, seeder configuration, mailer, etc. - Generate the application key with
php artisan key:generatecommand. - Generate the database structure with this commands based on your preferences:
- Use
php artisan migratefor creating / updating the database. - Use
php artisan db:seedfor seeding the database. - Use
php artisan migrate:freshfor fresh installation. - Use
php artisan migrate:fresh --seedfor fresh installation and seeding the database.
- Use
Warning! If you use
php artisan migrate:freshcommand, 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 devcommand. For watching the file changes (watch mode), usenpm run watchcommand instead. - In production, use
npm run prodcommand.
- In development, use
Note: Before running in watch mode, you need to start the application first.
- Finally, start the application with
php artisan servecommand.