<commit_before># Getting started

## Step 1
~~~ bash
$ git clone https://github.com/SundownDEV/DaimyoCMS.git
$ cd DaimyoCMS
$ composer install
~~~

## Step 2
Create and edit the file ```app/config/config.json```

~~~ json
{
    "general": {
        "name": "DaimyoCMS",
        "description": "CMS based on the micro PHP framework Daimyo.",
        "tags": "daimyo, cms, php",
        "thumbnail": ""
    },
    "dbDns": {
        "host": "localhost",
        "dbname": "daimyocms",
        "user": "root",
        "pass": "",
        "charset": "utf8"
    }
}

~~~

## Step 3

Create the database manually

~~~
mysql -u root -p
CREATE DATABASE daimyocms;
~~~

Edit the make file with your database name and password if you want to (not recommended).

~~~
dev:
	php -S localhost:8000 -t ./public;

migration-run:
	mysql -u root -p < migrations/0-init.sql;
	mysql -u root -p daimyocms < migrations/1-tables.sql;

migration-commit:
	mysqldump -u root -p -h 127.0.0.1 daimyocms > migrations/1-tables.sql;
~~~

Import the database

~~~ mysql
make migration-run
~~~

## Step 4
Allow DaiymoCMS to write in ```uploads``` folder
~~~ bash
$ find ./content -type f -exec chmod 644 {} \;
$ find ./content -type d -exec chmod 755 {} \;
~~~

# DaimyoCMS is now installed and ready!

You can test it on your dev server
~~~
make dev
~~~

Go to ```localhost:8000/manager``` and sign in with the default login:

~~~
login: admin
pass: <PASSWORD>
~~~

then go to ```/manager/settings``` and change the default password.

Check the [admin documentation](/docs/AdminPanel.md) to get started with the dashboard.<commit_msg>Documentation<commit_after># Getting started

## Step 1

~~~ bash
$ git clone https://github.com/SundownDEV/DaimyoCMS.git
$ cd DaimyoCMS
$ composer install
~~~

## Step 2

Create and edit the file ```app/config/config.json```

~~~ json
{
    "general": {
        "name": "DaimyoCMS",
        "description": "CMS based on the micro PHP framework Daimyo.",
        "tags": "daimyo, cms, php",
        "thumbnail": ""
    },
    "dbDns": {
        "host": "localhost",
        "dbname": "daimyocms",
        "user": "root",
        "pass": "",
        "charset": "utf8"
    }
}

~~~

## Step 3

Edit the make file with your database name and password if you want to (not recommended).

~~~
dev:
	php -S localhost:8000 -t ./public;

migration-run:
	mysql -u root -p < migrations/0-init.sql;
	mysql -u root -p daimyocms < migrations/1-tables.sql;

migration-commit:
	mysqldump -u root -p -h 127.0.0.1 daimyocms > migrations/1-tables.sql;
~~~

Create and import the database

~~~ mysql
make migration-run
~~~

## Step 4

Allow DaiymoCMS to write in ```uploads``` folder
~~~ bash
$ find ./content -type f -exec chmod 644 {} \;
$ find ./content -type d -exec chmod 755 {} \;
~~~

# DaimyoCMS is now installed and ready!

You can test it on your dev server
~~~
make dev
~~~

Go to ```localhost:8000/manager``` and sign in with the default login:

~~~
login: admin
pass: <PASSWORD>
~~~

then go to ```/manager/settings``` and change the default password.

Check the [admin documentation](/docs/AdminPanel.md) to get started with the dashboard.
{'fraction_non_alphanumeric': 0.15406698564593302, 'fraction_numerical': 0.017862838915470493, 'mean_word_length': 3.0464516129032257, 'pattern_counts': {'":': 22, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6111554', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1064, 'n_words': 358}