GithubHelp home page GithubHelp logo

ztlwebsite's Introduction

ZTL ARTCC Website

This is the main website for the vZTL ARTCC, part of the VATSIM Network.

Running Locally

Pre-requisites

๐Ÿ’ก 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.)

Setting up

  1. Clone the repository

    git clone https://github.com/ZTL-ARTCC/Current_Website.git
  2. Change directory into the repository

    cd Current_Website
  3. Run the setup script

    ./scripts/setup.sh

    ๐Ÿ’ก The docker MySQL database container is configured to always start when the docker daemon starts. If it does not start automatically, you can manually start it with the following script

    ./scripts/start-db.sh
  4. Finish configuring environment variables in .env (Note that the database configuration is set properly for the MySQL database created in Docker)

  5. To give yourself admin privileges in the local environment, follow these instructions

    1. In routes/web.php, uncomment the following lines (at the bottom of the file) and replace the default CID with your CID
      Route::get('/laratrust', function () {
          $user = App\User::find(1315134);
          $user->attachRole('wm');
      });
    2. Run the command php artisan serve
    3. Navigate to http://localhost:8000/laratrust
    4. Stop the server and re-comment out those lines
  6. Start the local environment with php artisan serve and the website will be running locally on http://localhost:8000!

Helpful Commands

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

ztlwebsite's People

Contributors

bigjeff187 avatar c0repwn3r avatar dependabot[bot] avatar evanston09 avatar flynzsky avatar iccowan avatar itsbenny99 avatar jonathan-baggett avatar jordanndev avatar justaracething avatar kjporter avatar landonpatmore avatar therealjbomb avatar violetsnow08 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.