A Package delivery Application made using the Laravel framework in PHP.
- Installed Local Server ( This demo uses XAMPP Apache + MariaDB + PHP + Perl) <- It's better to get the all-in-one package. To XAMP
- Installed Composer To Composer -Check this in a terminal (Command Prompt(CMD)) with:
composer -v (if this does not work - ensure the PATH variable has the directory of the installed 'composer') - Installed Laravel dependencies (After composer works with the above command)-> composer needs to download laravel installer; this can be done with this command:
composer global require laravel/installer- Once this has installed, All we need is an IDE (Integrated Development Environment) to work with the development of the App was done in PHPStorm, though you can use a free IDE called Visual Studio Code.
Certain steps are needed before the application will work for you. Follow the steps, and the application will work for you.
Create a new file and name it ".env". Create new File Demo
To get this simply create a new file and name it .env.
(Bottom directory) Copy everything in .env.example and paste it (all) within the newly created .env file. Copy .env.example file data into .env
Set an ADMIN_EMAIL AND ADMIN_PASSWORD - 'Important' Authentication is needed to view all customers and packages - or register on the site 'top left'.
Remember your account as when you run the next coming steps - This will be the username and password for the Application. This is Application is Local so make a test email, better to keep it short, in the example test@test.com is the test email.
Create Database Local database Creation
You must create a database in your local server. For the application "ssdelivery" is used, but this can be called anything.
Add Database name and local server login details into the .env file. Modifying .env Database Configuration setting
This is needed to connect to the local server database.
Generate a Session Key by typing the below command, this is to generate an App key; this only needs to be done when cloning the app. Generating an APP_KEY
php artisan key:generate <-this can be copied and pasted (ensure no spaces before or after.)Get Vendor Folder Build Vendor Folder
composer install <-this can be copied and pasted (ensure no spaces before or after.)This will get the packages that Laravel needs to be able to work.
####Run the appropriate migrations to correctly initialise the database Run the database migration
php artisan migrate <-this can be copied and pasted (ensure no spaces before or after.)Final Step - Running the Application Running the Server
php artisan serve <-this can be copied and pasted (ensure no spaces before or after.)You can CTRL left-click on the link in the terminal to open up the application. Or copy the link below and paste it into your URL search
http://127.0.0.1:8000#Final Notes:
