• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

moeen-basra/laravel-react: Laravel 8 and React 17 boilerplate

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

moeen-basra/laravel-react

开源软件地址(OpenSource Url):

https://github.com/moeen-basra/laravel-react

开源编程语言(OpenSource Language):

PHP 52.1%

开源软件介绍(OpenSource Introduction):

Laravel 8 and React 17 boilerplate

There are two different ways to run this demo

Please follow the guide.

Prerequisite

  1. Make sure you have composer installed.
  2. Make sure you have latest stable version of node installed.

Option 1

  1. git clone
  2. create a .env file copy content from .env.example and update the values
  3. composer install && composer update
  4. php artisan cron:refresh-database
  5. if npm version < 7 npm install && npm run dev else npm install --legacy-peer-deps && npm run dev
  6. php artisan key:gen
  7. php artisan serve

Option 2

Prerequisite

Make sure you have docker and docker-compose installed on you machine.

  1. git clone
  2. create a .env file copy content from .env.docker and do not make any change

run following command in terminal / power shell

docker-compose up -d

when docker will finish building the containers, access the "laravel-react-app" container using following command

docker exec -it lr_app sh

now you will be inside container

run following commands

  1. composer install && composer update
  2. php artisan cron:refresh-database
  3. php artisan key:gen
  4. if npm version < 7 npm install && npm run dev else npm install --legacy-peer-deps && npm run dev

open browser and check the following address

http://localhost:8100

TODO:

  • Add Redux
  • Add Laravel Sanctum for authentication
  • User Login
  • User Register
  • Users Crud
  • Articles Crud
  • Form validation Client and Server
  • Reset Password
  • Tests
  • Upgrade to Laravel 7
  • Upgrade to React 16.13
  • docker



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap