Download php (VS16 x64 Thread Safe)
Extract to C:\php
Copy C:\php\php.ini-development
and rename to php.ini
Add php to PATH (Windows Start -> Type "environment" -> Edit the system environment variables -> Advanced -> Environment Variables -> Click "Path" under System variables -> Edit -> New -> Type "C:\php"
)
Uncomment these lines in php.ini
extension=fileinfo
extension=exif
extension=pdo_mysql
extension=gd
Setup curl https://stackoverflow.com/a/49071524
Download node.js
Install yarn Plug'n'Play
npm install --global yarn
yarn set version berry
Download and run Composer-Setup.exe
Install the composer dependencies:
composer install
Make a copy of the .env.example
file named .env
:
cp .env.example .env
Generate an app key
php artisan key:generate
Start vite development server
yarn install
yarn run dev
Try serving the site in a new terminal and check you can open it at http://localhost:8000/
php artisan serve
Download and run the MySQL installer
Add MySQL to PATH (e.g. C:\Program Files\MySQL\MySQL Server 8.0\bin
)
Set all DB_
prefixed variables in .env
Initialise the database
php artisan migrate:refresh --seed
Set all Discord_
prefixed variables in .env
These are used for OAuth2, and can be found on the Discord Developer Portal
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
Ensure that a redirect has been added to your bot for http://localhost:8000/auth/callback