/portale

Primary LanguagePHP

Prerequisites

You will need PHP, Composer and Node.js. For MacOS I recommend installing them with Homebrew. For Windows see instructions for PHP, Composer and Node.

Installation

  1. Clone this repo

  2. Install Composer packages

    composer install
  3. Install NPM packages

    npm install
  4. Rename .env.example file to .env

  5. Open .env file and change the MAIL Provider SMTP Details. You can use MailTrap to generate basic SMTP Details and test your email feature.

    MAIL_MAILER=smtp
    MAIL_HOST=mailhog
    MAIL_PORT=1025
    MAIL_USERNAME=null
    MAIL_PASSWORD=null
    MAIL_ENCRYPTION=null
    
  6. Create a database and configure the follow in .env. Enter the path to your database file

    DB_CONNECTION=
    DB_HOST=
    DB_PORT=
    DB_DATABASE=<full path to the file>
    DB_USERNAME=root
    DB_PASSWORD=
    
  7. Initialise the database

    php artisan migrate
  8. Generate app key

    php artisan key:generate
  9. Compile the webpages and run it

    npm run dev
    php artisan serve