# Web Boilerplate
This is a separate module of the framework designed to streamline and standardize website development with the MAYS framework.
For more details, refer to the README.md file of the module.
The template is preconfigured for use with VS Code. It includes a recommended extensions file to ensure proper formatting and autocomplete, as well as a settings.json file to maintain consistent formatting.
# Boilerplate
There are two ways to set up the project:
- manually - by cloning and copying the files from the base Git repository
- automatically using the mays-cli create:project command.
The automatic method is the preferred approach, so that’s what we’ll focus on!
If you insist on the ancient art of manual cloning, you’ll need to seek guidance from the legendary elders of MAYS - those who still whisper commands in forgotten terminal incantations. 🧙♂️
# Setup
After running the create:project command, you need to update the following settings:
config.php
- Set the MAYS API path:
define("MAYS_PATH", "api"); - Define the website languages:
define("LANGS", "pt,en");
api/init.ini
- Set production mode:
status.prod = true - Update the
[info]section as necessary. - Configure the filesystem paths:
[filesystem] upload = "../" temporary = "../contents/tmp" - Ensure
langs.listmatches theLANGSsetting inconfig.php.