Show previous messages
Create a Twill app in one lineMarch 15, 2019 at 8:48pm (Edited 3 years ago)
I made a composer package create-twill-app to help people create a fresh twill app in one line.
I found this small tool was super useful during the past few months, whenever I needed to create a new twill app either for testing purpose or as a real world product.
The only problem at that time was it cost too much time on compiling assets, however, thanks to the Twill 1.2.1 release which get Laravel Mix 4 updated, the installation time now has been decreased significantly by almost 200%.
Thus now maybe a good time to share it with all other developers who love Twill.
- PHP >= 7.1.3
- An empty MySQL database
First, download the create-twill-app package using Composer:
composer global require yanhaoli/create-twill-app
Then, use the installer to create a fresh twill application:
create-twill-app new blog
It will ask you to enter the database infomation during the installation:
Enter your database host ["127.0.0.1"]: 127.0.0.1Enter your database username ["homestead"]: homesteadEnter your database password ["secret"]: secretEnter your database name ["homestead"]: homestead
Once you see the message Laravel development server started:, that means the installation has been completed.
Now, access Twill's beautiful login console by typing http://localhost:8000/admin in your browser, enjoy!
March 18, 2020 at 9:36pm
March 31, 2020 at 4:52pm
April 2, 2020 at 11:31am
April 9, 2020 at 1:22pm
December 29, 2020 at 9:53pm