This is the main website for the vZTL ARTCC, part of the VATSIM Network.
💡 If you are not on a UNIX based platform (like MacOS or Linux), it is recommended to use a terminal that is compatible with UNIX style commands (git bash, WSL, etc.)
Clone the repository
git clone https://github.com/ZTL-ARTCC/Current_Website.git
Change directory into the repository
cd Current_Website
Copy .env.example
to .env
Generate the application key
php artisan key:generate
Update the APP_STORAGE
variable in .env to be correct.
Go to https://auth-dev.vatsim.net and log in with the username and password 10000002
/10000002
.
Click "Manage OAuth Organizations"
Next to "VATSIM Connect Demo", click "View"
Open the "OAuth clients" tab
Click "Add client"
Under "Redirect URL", enter http://127.0.0.1:8000/login
Scroll to the very bottom to see the new created client. The ID will be on the left, and the secret will be in the middle.
In .env, set VATSIM_OAUTH_CLIENT
to the client ID.
In .env, set VATSIM_OAUTH_SECRET
to the client secret.
Initialize the database:
php artisan migrate
php artisan db:seed
Start the website:
php artisan serve
Finally, you can log in with the username and password 10000002
(it's the username and the password). You'll automatically have all permissions assigned to you.
Command | Action |
---|---|
composer format |
Formats all PHP files |
npm run format |
Formats all JS files |
php artisan serve |
Start the local server |
php artisan migrate |
Run all new migrations |
php artisan make:migration [migration name] |
Create a new migration |
php artisan make:controller [controller name] |
Create a new controller |
composer reset |
Resets the DB |