Session Authentication with Laravel and Next

Backend

  • Laravel

Installation

  1. Change directory to server

    cd server
  2. Create .env file

    cp .env.example .env
  3. Install dependencies

    ./vendor/bin/sail composer install
  4. Generate key

    ./vendor/bin/sail artisan key:generate
  5. Start the application with docker using sail

    ./vendor/bin/sail up
  6. Run migration and seeder file

    ./vendor/bin/sail artisan migrate:fresh --seed

Frontend

  • Next.js with experimental app folder

Installation

  1. Change directory to app

    cd app
  2. Create .env file

    cp .env.example .env
  3. Install dependencies

    yarn install
  4. Start the application

    yarn dev