This is a CraftCMS theme.
The project setup and gulp configuration is based on craft-webpack-project-boilerplate by MilesHerndon agency which has solid documentation and you should check it out if you have questions about the project structure.
- Download and install MAMP
- Open MAMP and click Start Servers
- The MAMP start page should open in your browser
- Click on the link to
phpMyAdmin - Create a new database and name it
dr_kris
- npm - Node Package Manager is what we'll use to install dependencies and automate stuff.
- Open the command line and navigate to
/Applications/MAMP/htdocs:cd /Applications/MAMP/htdocs - Clone the repo here:
git clone git@github.com:Scout-NU/dr-kris.git - Open the file
/craft/config/db.phpin the cloned repo - Look for the section labeled
Environment: Local - Under this section, change the line:
'database' => 'craft_webpack_project_boilerplate'to be'database' => 'dr_kris'. You can leave the other settings as their default values. - Save this file
- In your browser, navigate to
http://localhost:8888/dr-kris/public/admin/dashboard(or if your MAMP is running on another port use that one) - Click on Begin
- We will be using a
scout-adminaccount for development. If you need the credentials, contact Nick - Fill in the credentials and press Next
- For site name enter
dr-kris. The other fields can remain their default values. - Click Finish Up
To install project dependencies, navigate to the repo and run npm install
Use Node.js scripts to run build tools.
$ npm run watch- Recompiles files whenever they change.$ npm run build- Creates production ready code.
After running $ npm run watch or $ npm run build, your deploy-ready code will be taken from the ./src/ directory and placed within the ./public/build/ directory of your project. However, the webpack generated templates will be placed within the ./public/static/templates/_webpack.templates directory of your project so Craft CMS has access to them.