Requirements
To run this project on a vps or on your local machine it must have:
- PHP 7.4 or higher
- Apache, nginx, or another compatible web server.
- MySQL Database server
- BCMath PHP Extension
- Ctype PHP Extension
- Fileinfo PHP extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Module Re_write server
- PHP_CURL Module Enable
Install locally or in VPS
After you clone the Github repository create .env file from .env-example and update your configuration.
You have to set all the .env variables (database, mailing, paypal, stripe)
To generate the APP_KEY run:
$ php artisan key:generate
Then:
$ composer install
$ npm install && npm run dev
And now create the database structure and run seeds using:
$ php artisan migrate --seed
Now you can run the project and costumize it if you want using:
Controllers structure
All the project controllers are orgonized with the structure shown below, to make it easy to maintain the project in the futur or by another dev.
.
.
├── PostController
└── PageController
└── PackageController
│ ├── Create.php
│ ├── Update.php
│ ├── Show.php
│ └── Delete.php
.
.