- Clone the repository to your local machine
- Make sure you have PHP, composer, and npm installed
- Run
composer install
to install the required dependencies - Rename the
.env.example
file to.env
and update the database and email settings - Run
php artisan key:generate
to generate an app encryption key - Run
php artisan migrate
to create the database tables - Run
php artisan storage:link
to create a symbolic link for file storage - Run
npm install to install
the front-end dependencies - Run
npm run dev
to compile the front-end assets - Run
php artisan serve
to start the local development server - Access the website by navigating to
http://localhost:8000
(assuming your server is running on your local machine)
- PHP
- Composer
- npm
- MySQL
- Laravel framework
- Job Listing and Search
- Job Application
- Employer job posting and management
- Admin review, approve and reject job listings as well as applicant details.
- Edit the
database.php
file to include the following:
'mysql' => [
...
'sslmode' => env('DB_SSLMODE', 'prefer'),
'options' => (env('MYSQL_SSL') && extension_loaded('pdo_mysql')) ? [
PDO::MYSQL_ATTR_SSL_KEY => '/ssl/DigiCertGlobalRootCA.crt.pem',
] : []
],
This enables SSL encryption for the database connection.
-
Create a new web app and a MySQL database in Azure.
-
Link your Laravel project repository with Azure. This will allow you to deploy your code directly to Azure whenever there is a new push to your repository.
-
Azure will automatically generate workflows for your project, which you can customize if needed.
-
SSH into your site folders.
-
Copy the
.env.example
file to a new file called.env
:
cp .env.example .env
-
Edit the
.env
file to match the database information in Azure. -
Set the
APP_ENV
andAPP_DEBUG
variables toproduction
andtrue
, respectively:
APP_ENV=production
APP_DEBUG=true
- Run the following command to run the database migrations on your Azure database:
php artisan migrate --env=production --force
- Generate a new key for your application:
php artisan key:generate --env=production --force
- Run the following command to create a link for the images:
php artisan storage:install
- You can now view your site by visiting the domain provided by Azure.
Note: Before running the above commands, make sure you have installed all the necessary dependencies and packages required to run a Laravel project on Azure.
Seek more information on how you would configure the application to run on nginx server. Contact for more info.