h-yasinsoysal / atlas

Atlas: A (React, Laravel, Tailwind, Inertia) starter kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Atlas

Laravel React Inertia Tailwind starter kit

Includes Laravel Fortify for authentication

Introduction

This starter kit provides a minimal and simple starting point for building a Laravel application with authentication. Styled with Tailwind. It also includes Laravel Fortify which publishes authentication controllers to your application that can be easily customized based on your own application's needs.

This starter is powered by React, Inertia, Tailwind and Laravel.

Includes

  • Laravel v8.40
  • Laravel fortify v1.7
  • Laravel sail v1.0.1
  • React v17.0.2
  • React prop-types v15.7.2
  • Inertia v0.8.7
  • Inertia-react v0.5.12
  • Inertia-laravel v0.4.2
  • Inertia-progress v0.2.4
  • Tailwindcss v2.1.2
  • Ziggy v1.2

Notable Packages

How do I set this up

Installation Via Composer

If your computer already has PHP and Composer installed, you may create a new project by using Composer directly.

composer create-project nwanguma/atlas your-project-name

cd your-project-name

npm install

npm run dev

cp .env.example .env

php artisan key:generate

php artisan storage:link

To remove the documentation

  • windows
    rmdir /s docs
    del README.md
    echo "" > README.md
  • linux
    rm -r docs
    rm README.md
    touch README.md

Just Reminders πŸ˜…

  • Make Hard Visits with

    Inertia::Location(route('login'));
    

    Good for those pages that require refresh of sessions, to avoid 419 error (Page Expired).

  • Global alias

    const path = require('path');
    
    .webpackConfig({
        resolve: {
            alias: {
                '@': path.resolve('resources/js')
            },
        },
    });

    I made a global alias '@' for absolute path imports.

How it looks

About

Atlas: A (React, Laravel, Tailwind, Inertia) starter kit


Languages

Language:PHP 98.4%Language:Shell 0.8%Language:Blade 0.8%