maskeynihal / laravel-with-experimental-nextjs

laravel-with-experimental-nextjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

laravel-with-experimental-nextjs


Languages

Language:PHP 88.3%Language:TypeScript 11.2%Language:JavaScript 0.4%Language:CSS 0.1%