Folder extraction #
Step 1: Extract the downloaded zip file.

Step 2: Open the OPEN_CORE_BS server root folder in Visual Studio code.

.env Setup #
Step 1: In Visual Studio Code, open the OPEN_CORE_BS server root folder.

Step 2: Locate the .env.example file and rename into .env .
NOTE: Make a copy of .env.example file for future reference.

Step 3: Fill the Database details Accordingly.
IMPORTANT NOTE: Create a new db user.

Step 4: Add the Google Maps API key.

Install Dependencies #
Step 1: To install Composer, open the terminal and run the following command.
composer install

NOTE: If you face any issues while running the above command run this composer install --ignore-platform-reqs
Set files permission
sudo chmod -R 775 public
sudo chmod -R 777 storage
sudo chmod -R 777 modules_statuses.json
sudo chmod -R 777 Modules
Step 2: Then, enter the following command in the terminal.
php artisan jwt:secret

Step 3: Generate Application Key by entering the following command in the terminal.
php artisan key:generate

Step 4: Enter the following command to migrate.
php artisan migrate:opencorebs --fresh --seed

Step 5: Open new terminal and run the following command
yarn install

yarn build

Step 6: Now enter the following command in the terminal to link storage.
php artisan storage:link

Step 7: The application is live.
Login Credential
Username: [email protected]
Password: 123456

Step 8: Once the application is live, navigate to the Map Settings and enter the same Google Maps API Key into the provided input field.

Step 9: Update the App URL variable located in .env root server

Step 10: Update the HOST and PORT variables within the .env root server.

Step 11: Execute the following command in the terminal.
php artisan schedule:run

NOTE: To enable scheduled tasks (like background processing or reminders), you must add the cron entry to your server's configuration.
Step 12: Enter the following command in terminal.
php artisan reverb:start --debug
