Skip to content

kachar/discord-signup

Repository files navigation

Technologies

  1. PHP >= 7.3 (http://php.net)
  2. MySQL >= 5.6 (http://mysql.com)
  3. Laravel >= 8.0 (http://laravel.com)
  4. BCMath PHP Extension
  5. Ctype PHP Extension
  6. JSON PHP Extension
  7. Mbstring PHP Extension
  8. OpenSSL PHP Extension
  9. PDO PHP Extension
  10. Tokenizer PHP Extension
  11. XML PHP Extension

Installation

Setup

  1. cp .env.example .env
  2. composer install
  3. php artisan key:generate
  4. npm install
  5. Create an Application on Discord's Developer Portal (https://discord.com/developers/applications) and fill your .env file with its data.
    1. DISCORD_REDIRECT_URI example - http://localhost/discord-signup/public/auth/discord/handle

For development environment

  1. Don't forget to set database, mail, and Discord Developer data in .env file
  2. Generate public and admin panel assets with npm run dev
    1. Or just generate only public or only admin panel assets - npm run dev-front (public) and npm run dev-back (admin panel)
    2. Or just watch them - npm run watch-poll-front (public) and npm run watch-poll-back (admin panel)
  3. Run and seed all migrations - php artisan migrate:fresh --seed
    1. Or only run them with php artisan migrate
    2. Or only seed them with php artisan db:seed if you already migrated them (won't work if they are not migrated)

For production environment

  1. Don't forget to set the environment with APP_ENV=production in .env file
  2. Don't forget to turn off debug mode with APP_DEBUG=false in .env file
  3. Don't forget to set database, mail, and Discord Developer data in .env file
  4. Generate public and admin panel assets with npm run prod
  5. Run and seed all migrations - php artisan migrate:fresh --seed
    1. Or only run them with php artisan migrate
    2. Or only seed them with php artisan db:seed if you already migrated them (won't work if they are not migrated)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published