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=gdSetup curl https://stackoverflow.com/a/49071524
Download node.js
Install yarn Plug'n'Play
npm install --global yarn
yarn set version berryDownload and run Composer-Setup.exe
Install the composer dependencies:
composer installMake a copy of the .env.example file named .env:
cp .env.example .envGenerate an app key
php artisan key:generateStart vite development server
yarn install
yarn run devTry serving the site in a new terminal and check you can open it at http://localhost:8000/
php artisan serveDownload 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 --seedSet 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