- Clone this repo:
cd/destination_folder (on your local machine)
git clone {repo_url}
- Install composer (latest version)
https://getcomposer.org/download/
- Install
NodeJs
(version 16.17)
- Run this command:
composer update
-
Create a database on your local machine
-
Rename
.env.example
file to.env
-
Open
.env
file and setup the following variables:
DB_DATABASE= {your database name}
DB_USERNAME= {db username}
DB_PASSWORD= {db password}
- Generate key:
php artisan key:generate
- In order to create db tables, run this command:
php artisan migrate
- Seed data (if there is) running this command:
php artisan db:seed
- Run the following commands to optimize the asset:
npm install
npm run dev
- Start the scheduler with command:
php artisan schedule:run
or
php artisan schedule:work
NOTE: (this scheduler deletes all inactive or expired sales from the database)
- Create a profile on
Stripe
-
In developer tools get your
API
keys: (public and secret) -
Put them in
ENV
file:
STRIPE_KEY=your-stripe-key
STRIPE_SECRET=your-stripe-secret
- Start application using this command:
php artisan serve
- In order to send mails (for testing) create a profile on
NOTE: Mail Trap is free but limited. There are always alternative tools. One of them is MailHog
.
-
In
Integrations
selectLaravel 7+
and copy values -
Paste the values in
.env
file (like in the .env.example)
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME= {generated username}
MAIL_PASSWORD= {generated password}
MAIL_ENCRYPTION=tls
If you are using Mailhog
please follow the configuration settings.
MAIL_MAILER=smtp
MAIL_HOST=localhost
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Note: This is only relevant if you are using MailHog
on your local server.
20. Follow the generated link and start using application (e.g. on localhost)
http://127.0.0.1:8000
Note: For the CMS part, the new Laravel Breeze
dark mode is used. By default is not integrated in Laravel
, so basically on every update of the composer the theme will be returned into white. To enable dark mode please run php artisan breeze:install --dark
and then please REVERT all new created changes.