Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install.md #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 66 additions & 40 deletions install.md
Original file line number Diff line number Diff line change
@@ -1,82 +1,106 @@
# Installation Guide

Before deploying the CtrlPanel.GG Coin Earning System to your production server, it’s wise to download all the necessary files from this repository to your local computer. This will allow you to configure and customize the system as needed before going live. Follow these steps to get started:
Before deploying the CtrlPanel.GG Earn Coin System to your production server, it’s wise to download all the necessary files from this repository to your local computer. This will allow you to configure and customize the system as needed before going live. Follow these steps to get started:

## Step 1: Clone the Repository

1. Open your terminal or command prompt.
1. Download this Code.

2. Navigate to the directory where you want to store the system files on your local computer using the `cd` command.
2. Extract the File and Start Editing the Code & then Upload.

[**Recommended:** Do by copy-pasting in the commands given in the installation guide]

3. Clone the repository by running the following command:
## Step 2: Configuring The File For Linkvertise

```shell
git clone https://github.com/aroniktv/coin-earning-ctrlpanel.git
1. Open up the EarnController.php which can be found in /var/www/ctrlpanel/app/Http/Controllers.

```
2. Use This for Direct Access:
```shell
nano /var/www/ctrlpanel/app/Http/Controllers/EarnController.php

## Step 2: Configure the Variables (Linkvertise)
```

1. Open up the EarnController.php which can be found in /app/Http/Controllers.
4. Change `$dailyLimit` to the amount of daily how many links are generated per user.

2. Change `$dailyLimit` to the amount of daily how much link generate per user.
5. Change `$timezone` to your timezone, you can find your timezone at https://en.wikipedia.org/wiki/Time_zone

3. Change `$timezone` to what your timezone, you can find your timezone from https://en.wikipedia.org/wiki/Time_zone
6. Replace `Your_CtrlPanel_Domain` with the Domain of your CtrlPanel. !!!Do NOT ADD A / !!!

4. Replace `https://my.domain.example` by the Domain of your CtrlPanel. !!!Do NOT ADD A / !!!
7. Replace `https://link-to.net/` with your Direct Ad Link, Generate it First.

5. Replace `yourid` with your Linkvertise Publisher ID which you can find in the Full Script API Section.
8. Replace `Your_Publisher_ID` with your Linkvertise Publisher ID which you can find in the Full Script API Section. (Numerical Code in the HTML Code)

6. Change the Variable `$reward` to the Amount of Coins you want to give a user for an ads session. The default is 30. `($reward = 30;)`
9. Change the Variable `$reward` to the Number of Coins you want to give a user for an ads session. The default is 30. `($reward = 30;)`

7. Save the File.
10. Save the File.

## Step 3: Configure the Variables (Google Adsense)
## Step 3: Configuring The File For Google Adsense

1. Open up the EarnController.php which can be found in /app/Http/Controllers.
1. Open up the EarnController.php which can be found in /var/www/ctrlpanel/app/Http/Controllers.

2. Change the Variable `$reward_a` to the Amount of Coins you want to give a user for an ads session. The default is 5. `($reward_a = 5;)`
2. Use This for Direct Access:
```shell
nano /var/www/ctrlpanel/app/Http/Controllers/EarnController.php

3. Save the File.
```

4. Open up the adpage.blade.php which can be found in in /resources/views/earn/.
4. Change the Variable `$reward_a` to the Number of Coins you want to give a user for an ads session. The default is 5. `($reward_a = 5;)`

5. Replace every placeholder “xxxxxxx” with the variables you get from Adsense
5. Save the File.

6. Save the File.
6. **Note:** Create a Folder Named Earn or paste this code:
```shell
mkdir /var/www/ctrlpanel/resources/views/earn/
```

8. Open up the adpage.blade.php which can be found in /var/www/ctrlpanel/resources/views/earn/.

9. Use This for Direct Access:
```shell
nano /var/www/ctrlpanel/resources/views/earn/adpage.blade.php
```

## Step 4: Configure the Variables (ClickCoins)
10. Replace every placeholder “xxxxxxx” with the variables you get from Adsense

11. Save the File.

## Step 4: Configuring The File For ClickCoins

1. Open up the EarnController.php which can be found in /app/Http/Controllers.

2. Change the Variable `$clickcoinReward` to the Amount of Coins you want to give a user for an click. The default is 1. `$clickcoinReward = 1`
2. Use This for Direct Access:
```shell
nano /var/www/ctrlpanel/app/Http/Controllers/EarnController.php

3. Change the Variable `$minTimeBetweenClicks` to the Amount you want user to wait after each Click. The default is 60. `$minTimeBetweenClicks = 60`
```

4. Replace $clickcoinLink = 'your direct ad link'; with your ads direct link.
4. Change the Variable `$clickcoinReward` to the Number of Coins you want to give a user for a click. The default is 1. `$clickcoinReward = 1`

5. Save the File.
5. Change the Variable `$minTimeBetweenClicks` to the Amount you want the second to wait after each Click. The default is 60. `$minTimeBetweenClicks = 60`

## Step 5: Configure the Domains
6. Replace $clickcoinLink = 'your direct ad link'; with your ads direct link.

1. Open up the earn.blade.php which can be found in /resources/views/.
7. Save the File.

2. Change the Domain `https://my.domain.example` to your CtrlPanel Domain. !!!Do NOT ADD A / !!!
## Step 5: Add the Routings and the Navigation and do the last steps.

3. Save the File.
1. Open up the web.php file which can be found in /var/www/ctrlpanel/routes/. (This is in your CtrlPanel Installation)

## Step 6: Add the Routings and the Navigation and do the last steps.
2. Use This for Direct Access:
```shell
nano /var/www/ctrlpanel/routes/web.php

1. Open up the web.php file which can be found in /routes/. (This is in your CtrlPanel Installation)
```

2. Add this to the Top of the Web.php:
4. Add this code to the Top of the Web.php:

```shell
use App\Http\Controllers\EarnController;

```

3. Add this under the Line ```shellRoute::post('/voucher/redeem', [VoucherController::class, 'redeem'])->middleware('throttle:5,1')->name('voucher.redeem');```
5. Add this code under the Line
```shellRoute::post('/voucher/redeem', [VoucherController::class, 'redeem'])->middleware('throttle:5,1')->name('voucher.redeem');```

```shell
Route::get('/earn', [EarnController::class, 'index'])->name('earn.index');
Expand All @@ -91,12 +115,14 @@ Before deploying the CtrlPanel.GG Coin Earning System to your production server,

```

4. Save the File.
6. Save the File.

5. Upload the other files to the Live CtrlPanel Folder
7. Now Upload this all Files to ```/var/www/ctrlpanel```. (Only if you've done the changes of code in localhost not directly in Server's Folder)

6. Run this command's in the ctrlpanel directory.
```
cd /var/www/controlpanel && php artisan view:clear && php artisan config:clear && chown -R www-data:www-data /var/www/controlpanel/*
8. Run these command's in the ctrlpanel directory.
```shell
cd /var/www/ctrlpanel && php artisan view:clear && php artisan config:clear && chown -R www-data:www-data /var/www/ctrlpanel/*
```

## Hurray, Your System is Successfully Installed.