1.1.1 • Published 3 years ago
cra-template-ts-laravel-auth v1.1.1
cra-template-ts-laravel-auth
This is the official base template for Create React App.
Template for LaravelReactSPA.
Javascript
Usage
npx
npx create-react-app my-app --template ts-laravel-auth
Change in .env.development
REACT_APP_API_URL="http://localhost:80/" // Backend Domain
REACT_APP_GITHUB_REDIRECT="http://localhost/github/auth/login"
You need to reload the server after a change in environment varibales file.
Work with Laravel brand new project
Check LaravelReactSPA for the backend guide and implementation.
Recommend installing sail before
Features
- Login/Register Page
- Guarded/Public Routes
- Sign In with Github
- Styling with tailwindcss, transition animation with @headlessui/react
Includes
- axios
- craco
- postcss
- autoprefixer
- tailwindcss
- @tailwindcss/forms
- @tailwindcss/postcss7-compat
- @headlessui/react
- redux
- react-redux
- redux-persist
- redux-thunk
- react-router-dom
Testing Locally
npx create-react-app . --template file:../path/to/your/template/cra-template-[template-name]