This demo site uses fortrabbit, a modern PHP application platform tailored for Craft CMS, with Git deployments and Composer support.
Front end build system: Webpack and Tailwind CSS
git clone https://github.com/andyzack/my-craft-demo.git`
composer install
- define document root to the sub-folder 'web'
- define database as mentioned in .env.example
- with PHP version mentioned in composer.json
- base url like it is defined in .env.dev
- Copy .env.dev to create .env file
- Change the database credentials (if needed)
http://my-craft-demo.test/admin
After the above steps, you should be able to login to the admin panel locally http://my-craft-demo.test/admin
For full instruction see craft-3-setup
Copy over security key from .env
(hidden file) from the root folder of your project and paste it in the App's ENV vars settings in the Dashboard
SECURITY_KEY=[REPLACE WITH YOUR HASH KEY]
This change is already included in config/general.php
as instructed in this section
- Extract copy of MySQL db (my_craft_demo_2021-01-03.sql.zip) available in the root folder and upload in your project
- Export local database along with any changes you made and import it to the fortrabbit remote. Follow the guidelines Using MySQL Workbench (GUI)
Node
NPM
ES6
Webpack
npm install
npm run hot
npm run build
Webpack is a task/build runner for development. We use it to compile Sass, and JavaScript, minify CSS, uglify and compress JavaScript and much more.
A utility-first CSS framework for rapidly building custom user interfaces. For full documentation, visit tailwindcss.com
For full intruction on installation https://craftcms.com/docs/3.x/installation.html#step-1-download-craft