This is the official base template for Create React App.
Template for LaravelReactSPA.
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.
Check LaravelReactSPA for the backend guide and implementation.
Recommend installing sail before
- Login/Register Page
- Guarded/Public Routes
- Sign In with Github
- Styling with tailwindcss, transition animation with @headlessui/react
- axios
- craco
- postcss
- autoprefixer
- tailwindcss
- @tailwindcss/forms
- @tailwindcss/postcss7-compat
- @headlessui/react
- redux
- react-redux
- redux-persist
- redux-thunk
- react-router-dom
npx create-react-app . --template file:../path/to/your/template/cra-template-[template-name]