This project is based on the official Craft starter project
Run: $ xcode-select --install
and follow the instructions. It can take a few minutes to install.
You can download MAMP here and find the installation instructions here.
CraftCMS uses PHP Composer to manage Craft updates, plugins, and other things related to CraftCMS. While there are installation instructions for various operating systems, we have found that the most common setup (i.e. MacOSX and Ubuntu Linux) can be installed by doing the following:
$ php installer --install-dir=/usr/local/bin --filename=composer
$ composer --version
to verify that the installation was successful.If all goes well and you were able to install Composer globally, then this is the only time you will have to install Composer.
CraftCMS projects based on craft-boilerplate
utilize nodejs
, npm
, and laravel mix
, in order to run SASS processing, javascript minifcation, and autoprefixing.
Find out how to download and install node
for your environment here (which includes npm
): https://nodejs.org/en/download/
Follow these instructions when you need to start a brand new CraftCMS from scratch, utilizing this bootstrap project as a foundation and a starting point.
$ composer install --no-scripts
, which will download Craft and all associated plugins.$ composer run-script post-create-project-cmd
, which will guide you through the "CraftCMS Initialization" steps that ultimately create an .env file and set your security key..env
for BACKUP_COMMAND
, RESTORE_COMMAND
, and DB_SOCKET
$ ./craft setup
and follow the instructions, which will fill out the rest of the fields in your .env file and set up the database for first-time use.$ npm install
, which will install all Node dependencies for this project./admin
and login using the credentials you created during installation. Browse to Settings -> Plugins, and install each of the plugins listed.This CraftCMS project expects certain files to be in specific locations in order to be used.
.env
.env
fileMore detailed information about the default structure can be found here: https://craftcms.com/docs/5.x/system/directory-structure.html
./craft setup
/scripts/.env.sh
file to match your local machine and the remote serverCraft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.
In technical terms, it’s a self-hosted PHP application backed by a MySQL or Postgres database. Read more in the official documentation.
Psst! Looking for the Craft source code? Need to file a bug report or feature request? Check out craftcms/cms
.
:postal_horn: If you just heard about Craft: Take a feature tour on our website—then spin up a demo project to try it out for yourself.
:construction_worker_woman: If you are eager to start building: You’re in exactly the right place!
This repository is a bare-bones Composer “project”, intended for use with the composer create-project
command. It contains only the folders and files absolutely required to run Craft.
[!TIP]
Our tutorial covers this setup process in greater depth. If you get stuck, give it a once-over; if things still aren’t clicking, help is never far away in our community or via official support.You can also find these instructions (and some other helpful tips) in the documentation.
The best way to spin up your first project is with DDEV, a cross-platform, Docker-based PHP development environment.
Choose a folder for your project and move into it:
cd /path/to/web/projects
mkdir my-project
cd my-project
Configure a new DDEV project, and install Craft:
ddev config --project-type=craftcms --docroot=web
# Use this package as a starting point:
ddev composer create -y --no-scripts craftcms/craft=^5.0.0
# Run the Craft CMS installer (use all defaults):
ddev craft install
Run ddev launch
to open the project in your browser.
Craft’s control panel is located at /admin
. The rest is up to you! Pick up where we left off in the tutorial, or dive right in on modeling your own content:
Craft comes with a ton of official and community resources.