This is a quick project kickstart template with PHP, Composer, and Tailwind CSS.
Follow the steps below to bootstrap your project.
Clone the repository into your own project folder:
git clone https://github.com/haiqalzaki/kickstart.git myprojectfolder
cd myprojectfolder
Run Remove-Item -Recurse -Force .git
to remove the Git folder.
composer install
npm install
cp .env.template .env
code .env
Run rm -rf .git
to remove the Git folder.
composer install
npm install
cp .env.template .env
nano .env
For development tailwind builds, run npm run tail-dev
For production tailwind builds, run npm run tail-prod
- Be sure to populate BASE_URL env based on your local machine configuration (using IP or localhost) OR your domain (if deploying with domain)
- Example 1:
- BASE_URL=http://localhost/projectrootfolder (not web root!)
- Example 2:
- BASE_URL=http://192.168.0.10/projectrootfolder (your machine IP)
- Example 3:
- BASE_URL=https://yourdomain.com (your domain name)
- Example 1:
- APP_ENV should be
development
ORproduction
(this is important and cannot be misspelled!) - APP_TIMEZONE must follow the IANA Time Zone Database format
(region/city)