定制 baconfy/laravel-starter-kit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

baconfy/laravel-starter-kit

Composer 安装命令:

composer create-project baconfy/laravel-starter-kit

包简介

The skeleton application for the Laravel framework.

README 文档

README

Baconfy is a Laravel with InertiaJS, and React starter kit. This project uses Laravel as the PHP backend framework with InertiaJS to bridge front-end views written in React, providing a seamless single-page application (SPA) experience without the need for a traditional API.

This project uses larastan/larastan laravel/pint peckphp/peck pestphp/pest pestphp/pest-plugin-type-coverage rector/rector

Prerequisites

Before setting up the project, ensure you have the following tools installed on your system:

  • PHP >= 8.4
  • Composer
  • Node.js >= 16.x
  • npm (comes with Node.js)
  • Laravel CLI (optional but recommended)
  • A database such as SQLite or PostgreSQL

Installation

Follow the steps below to set up Baconfy on your local machine:

1. Clone the Repository

git clone https://github.com/baconfy/laravel-starter-kit.git
cd laravel-starter-kit

2. Install PHP Dependencies

Run the following command to install Laravel and its required PHP dependencies:

composer install

3. Install Node.js Dependencies

Run the following command to install JavaScript dependencies required for React and other front-end tools:

npm install

4. Set Up Environment Variables

Copy the .env.example file to .env and configure your database, application key, and other necessary environment variables. You can do this with the following command:

cp .env.example .env

Generate the Laravel application key:

php artisan key:generate

5. Set Up the Database

Make sure your database server is running, then create a database. Update the DB_* settings in your .env file accordingly. Once you have updated the environment variables, run the migrations:

php artisan migrate

For production builds, use:

npm run build

6. Start the Development Server

Finally, start the local development server by running:

composer dev

Access the application at http://127.0.0.1:8000.

Testing

To ensure the application is functioning as expected, you can run the tests included in the Laravel application:

composer test

You can also add front-end tests if applicable by leveraging tools like Jest or React Testing Library.

Contributing

Contributions are welcome! If you'd like to contribute to Baconfy, feel free to fork the repository and submit a pull request. Please ensure your code adheres to the coding standards and is well-documented.

License

Baconfy is open-source software licensed under the MIT license.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-06