OutplacementHeros was a community of Recruiting Professionals, Consultants & Volunteers who collaborated to help laid off employees during COVID-19 global pandemic.
Demo Link: https://better-jobs-9.000webhostapp.com/
- PHP version 7.2.34
- *MySQL version 8.0.33
- Composer version 2.3.8
*This app uses MySQL. To use something different, open config/Database.php
and change the default driver.
To use MySQL, install and setup a database and then add your database credentials(database, username and password) to the .env.example
file.
Install Laravel's dependencies using Composer:
composer install
-
In case there is error:
-
Delete
composer.lock
file. (if exists) -
Delete
vendor
directory. (if exists) -
Clear Cache:
Run the following commands to clear various Laravel caches:php artisan config:clear php artisan cache:clear php artisan route:clear php artisan view:clear composer clear-cache
-
Run
composer install
again. -
Check Composer Autoload:
composer dump-autoload
-
cp .env.example .env
php artisan key:generate
Open the .env
file in a text editor and configure the database settings, application URL, email (or mailtrap values), admin account values, pusher values and any other necessary environment variables for example:
-
email values, eg:
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=site_email@site.com MAIL_PASSWORD=YourEmailPassword MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=site_email@site.com MAIL_FROM_NAME=OPH
-
pusher values, eg:
PUSHER_APP_ID=YourPusherAppID PUSHER_APP_KEY=YourPusherAppKey PUSHER_APP_SECRET=YourPusherAppSecret
OR login to https://pusher.com/ to create all new app and get the above values. Instructions to integrate pusher will be available there, but here is the outline to verify:
- Put pusher credentials in
.env
file. - Also replace pusher app key in
home.blade.php
inside<script>
eg:var pusher = new Pusher('YourPusherAppKey', { cluster: 'EnterClusterValue' });
- Put pusher credentials in
-
admin values, eg:
ADMIN_NAME="Some Admin Name" ADMIN_EMAIL=admin@site.com ADMIN_PASSWORD=AdminPassword
Two Options:
-
Option 1:
All database tables can be imported:
OPH_sql_import1/ALL_PRESENT_TABLES_EXPORT/oph.sql
-
Option 2:
Using artisan for Database Migrations:- To create all the necessary tables and columns, run the following:
php artisan migrate
- Import
'countries.sql'
,'states.sql'
,'cities.sql'
,'courses.sql'
,'designations.sql'
,'industries.sql'
,'skills.sql'
,'specializations.sql'
,'messages.sql'
values to the database.
(If required, delete the previously existing respective tables)- ALL these .sql files are directly available here inside
'OPH_sql_import1'
- ALL these .sql files are directly available here inside
- To create all the necessary tables and columns, run the following:
To add admin data, run:
php artisan db:seed --force
Create symlink from public/storage
directory to storage/app/public
directory which will make files stored in the storage/app/public
directory accessible from the web by creating a virtual link in the public directory of this project.
php artisan storage:link
npm install && npm run dev
In the Terminal, navigate to the project directory if not already there.
Start the Laravel development server:
php artisan serve
- Open a web browser.
- Visit the URL displayed in the Terminal after starting the development server.
By default, it's usuallyhttp://127.0.0.1:8000
.
1.0.0