承接 rasmusgodske/vilt-crafter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rasmusgodske/vilt-crafter

Composer 安装命令:

composer require rasmusgodske/vilt-crafter

包简介

A tool for helping to bootstrap your Laravel VILT Stack

README 文档

README

ViltCraft is a simple way to get a VILT-stack up and running. It is a perfect combination of:

Furthermore I have added a few extra things to make the development process easier:

  • Ziggy: (Use Laravel routes in JavaScript)
  • Typescript: (Type checking for JavaScript)
  • Optional Bootstrap Script: Bootstrap script to quickly get appication up and running
  • Optional VSCode Debugging: Debugging configuration for Visual Studio Code

This stack is perfect for developers who want to build a modern web application with minimal setup.

Motivation

I have been working with Laravel for a few years now and I have always been a fan of the Laravel ecosystem. However, as a individual with lots of ideas, I found myself starting lots of new Laravel projects. I always found myself doing the same setup over and over again and I wanted to automate this process. I wanted to build something that would allow me to get up and running quickly. Very similar to what Laravel Jetstream does, but with a few tweaks.

Installation

To get started, you need to install the ViltCraft package. You can do this by running the following command:

composer require rasmusgodske/vilt-crafter

Usage

Once you have installed the ViltCraft package, you can run the following command to setup the ViltCraft stack:

php artisan vilt-crafter:install

Options:

You can add the following options to the vilt-crafter:install command eg.

php artisan vilt-crafter:install --vscode --bootstrap-script

Below are the available options:

--vscode

This option will create a .vscode folder in the root of your project with a launch.json file. This file will allow you to debug your application using Visual Studio Code.

--bootstrap-script

This option will create a scripts/ folder in the root of your project with a bootstrap.sh file. This file will allow you to quickly get your application up and running. I personally use this script all the time in my Laravel sail projects.

Development

I have tried to make the development process of this package as easy as possible. I have done this by creating DevContainer with all the necessary tools to get started. The only requirement is that you have Docker installed on your machine and have the Remote - Containers extension installed in Visual Studio Code.

This devcontainer also comes with a list of available useful VSCode tasks that you can use to get started:

  • Setup Laravel Project: This task will setup a new Fresh Laravel Sail project in the example-app directory.
  • Start Laravel Sail: This task will start the Laravel Sail containers.
  • Composer update: This task will update the composer dependencies within the running sail environment.
  • Composer Install: This task will install the composer dependencies within the running sail environment.
  • Run Vite: This task will start the vite server.
  • Migrate Database: This task will migrate the database within the running sail environment.

1. Clone the repository

git clone git@github.com:RasmusGodske/vilt-crafter.git

2. Open project in VSCode

Next open the project in Visual Studio Code

cd vilt-crafter
code .

3. Open DevContainer in VSCode

Next open the DevContainer in VSCode(Make sure you have the Remote - Containers extension installed).

You can do this by pressing CMD + Shift + P -> Remote-Containers: Reopen in Container

This might take a few minutes to setup the container.

After the container is setup, you will now sett the following file structure:

├── vilt-crafter
└── .vscode

vilt-crafter is the root of the project and .vscode is mounted to the workspace root, so you can acccess the tasks and debugging configuration.

4. Bootstrap Local Laravel Sail Project

Next you need to bootstrap the Laravel Sail project. You can do this by running running the following VSCode task: Setup Laravel Project.

cmd + shift + p -> Tasks: Run Task -> Setup Laravel Project

This will create a new directory called example-app and setup the Laravel Sail project.

Furthermore, it will also initialize a new git repository in the example-app directory. This is used to be able to reset all changes vilt-crafter has made to the project.

6. Launch Sail

cmd + shift + p -> Tasks: Run Task -> Setup Laravel Project

This will start the Laravel Sail containers and you should now be able to access the Laravel application on localhost:8080.

6. Update composer dependencies

Next you need to update the composer dependencies by running the following VSCode task: Composer update.

cmd + shift + p -> Tasks: Run Task -> Composer update

7. Install composer dependencies

Next you need to install the composer dependencies by running the following VSCode task: Composer Install.

cmd + shift + p -> Tasks: Run Task -> Composer Install

8. Migrate Database

Next you need to migrate the database by running the following VSCode task: Migrate Database.

If skipped you will get an error when trying to access the application.

cmd + shift + p -> Tasks: Run Task -> Migrate Database

9. Confirm ViltCraft is detected

Next confirm that ViltCraft is detected by running the following command:

sail artisan list

This should output a list of artisan commands and you should see the following command:

# ... Other artisan commands
 viltcrafter
  viltcrafter:install       Install the viltcrafter components and resources

10. Run ViltCraft Installer

You can now run the ViltCrafter installer by opening a terminal within example-app and running the following command:

php artisan vilt-crafter:install

rasmusgodske/vilt-crafter 适用场景与选型建议

rasmusgodske/vilt-crafter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 05 月 27 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「tailwind」 「Ziggy」 「inertiajs」 「vscode」 「vue3」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 rasmusgodske/vilt-crafter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 rasmusgodske/vilt-crafter 我们能提供哪些服务?
定制开发 / 二次开发

基于 rasmusgodske/vilt-crafter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-27