Welcome to fortnitestatstracker.xyz! We deliver our best Fortnite stats for every user on Fortnite to this day!
Follow these steps to get started before you download this repository.
- You need to install Composer
- You need to install Laravel with Composer
- Mysql server (Can be used with XAMPP)
- You need to install Node.js version 16.x or higher
- You need to install NPM (Node Package Manager) witch comes with Node.js
Branches are for version control. This makes it possible to work on multiple issues/tickets at the same time. Make sure that you never work on the main branch.
- Change your branch corresponding to your issue/ticket. Example:
git checkout v1/frontendto switch to the branchv1/frontend. If the branch already exist, go to next section. - If the branch does not exist yet, create a new branch by typing
git checkout -b branch_name. Example:git checkout -b v1/frontend. And push the branch to the remote repository. Example:git push origin v1/frontend - If you created a new branch, you must go back to step 1 afterwards.
Always try to keep the branch up to date with the latest changes.
- Navigate to your Programming folder and open your terminal/command prompt
- Clone this repository by typing:
git clone https://github.com/DevShaded/fortnitestatstracker.xyz.git- Navigate to the root directory of the repository and open your terminal/command prompt
- Install dependencies by typing:
composer installand then type
npm install- We need to copy the .env.example file to .env that you create, and change the values to your own.
- For the
FORTNITE_API_KEYvariable go to Fortnite-API.com and get the API key form there. - For the
FORTNITE_IO_KEYvariable go to FortniteApi.io and get the API key form there. - Set up the database information in the
.envfile, and create a new database withutf8mb4_unicode_cias a collation. - Run
php artisan key:generateto generate a new session key for the application. - Then for the last step we need to run
php artisan migrateto create the database tables.
- Now we need to run the build command that is located in the
package.jsonfile
npm run build- Then we need to start the
ssr.jsserver!- Method 1:
- We can start the
ssr.jsserver with just doing
node /storage/ssr/ssr.js
- We can start the
- Method 2:
- we can also use PM2 to start the
ssr.jsserver with this command
pm2 start /storage/ssr/ssr.js --watch
- we can also use PM2 to start the
- Method 1:
We need to run the dev command that is located in the package.json file
npm run dev