Code Monkey home page Code Monkey logo

appunti-auth-progetto-iniziato's Introduction

Aggiungere autenticazione ad un progetto in corso

01. Comandi di setup

  • creazione file .env
  • installa composer
composer i
  • installa node
npm i
  • crea chiave
php artisan key:generate

02. Modifichiamo questi file/cartelle:

  • (duplicazione) routes/web.php -> routes/_web.php
  • (duplicazione) resources/scss/app.scss -> resources/scss/_app.scss
  • (rinominare) views -> _views

03. Creiamo questi file:

  • resources\views/welcome.blade.php
  • resources\css/app.css

04. Installiamo la dipendenza composer del pacchetto che si occupa dell'autenticazione

composer require laravel/breeze --dev

05. Installiamo alcuni file di supporto per breeze

php artisan breeze:install

06. Creiamo preset per togliere Tailwind e rimettere Bootstrap

composer require pacificdev/laravel_9_preset

07. Cancelliamo la cartella: resources\css (perchè utilizzeremo l'scss)

08. Per abilitare interfaccia per autenticazione e altro...

php artisan preset:ui bootstrap --auth

09. Refresh del database

php artisan migrate:refresh

10. Per sistemare alcune dipendenze del punto 08 e compilazione di NodeJS (node)

npm i
npm run dev

11. Avvio del server

php artisan serve

BUONA FORTUNA!

appunti-auth-progetto-iniziato's People

Contributors

bonvi83 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.