admin管理员组文章数量:1123064
Laravel 11 works amazingly great with React and Inertia and setting up a full Laravel Dev-Stack with Laravel Sail couldn't be easier. It appears that the directory structure is set up to live at the core of the repository and the frontend lives embedded under resources/js
and resources/css
.
Now, how (if at all) can Laravel be set up in a custom repository structure, where frontend and backend live in their own folders:
- core/frontend <-- here lives the react+inertia frontend code
- core/backend <-- here lives the laravel backend with web and api routes
- docker <-- all Dockerfiles
- config <-- all config files
- .env <-- global .env file shared among front- and backend
It seems that laravel already deploys it's own vite server but the config files for vite, tailwind, etc. should be in the frontend folder.
本文标签: monorepoLaravel 11 ReactInertia Setup with FrontendBackend MonoRepo StructureStack Overflow
版权声明:本文标题:monorepo - Laravel 11 React+Inertia Setup with FrontendBackend Mono-Repo Structure - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736543933a1944421.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论