A base template for Silverstripe projects with:
- PSR-4 autoloading
- Laravel Mix
- Vue.js
- Tailwind CSS
- Silverstripe Elemental
- Eslint Config
- Create a database
- Proceed to set up your local environment variables by duplicating the '.env.example' and renaming it '.env', after which you can edit accordingly.
- Next, run the
npm install
command in the root directory of the project. This will install the necessary node modules/dependencies required. - Next, run the
npm update
command in the root directory of the project. This will update the necessary node modules/dependencies to their latest versions. - Next, run the
npm run start
command in the root directory of the project. This will perform a one of dev compilation and create adist
folder in thesite
folder located within thethemes
folder in the project root. This step is required to prevent composer from returning an error when you move to the next step. - The next step now is the run
composer install
command. This command will install all the necessary packages required for Silverstripe to work. - Next, hit the site in your browser and append
/dev/build?flush
to your local url link to build the database and get Silverstripe running in the browser.
For a one of dev compilation, you can run the npm run start
command.
To start the watch script, run the npm run dev
command. This command constantly watches your project for any new changes and rebuilds your files to reflect any changes.
For a minified production bundle, run the npm run build
command. This command will get your dist folder and minify it. This gets it ready for the production environment.