Create your first blog in php.
-
Clone the project
git clone https://github.com/PavelKlimovich/mydnex_blog.git
. -
In terminal change current working directory root
cd path/to/your/app
and executephp -S localhost:8000 -t public/
to throwing php server. -
Install composer with
composer install & composer dump-autoload
. -
Install npm with
npm install & npm run dev
. -
Copy in the root of the project a new file
.env
from.env.example
withAPP_NAME=mydnex_blog APP_URL=http://localhost DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE= DB_USERNAME= DB_PASSWORD= EMAIL_FROM=
-
Create DATABASE in your database management system.
-
Execute :
php kernel migrate
in directory root to initialize DATABASE. -
If you want generate fake data in database execute :
php kernel seed
.Admin : [email protected] Password : password
-
If you want reset database then execute
php kernel migrate:fresh
.
-
Clone the project
git clone https://github.com/PavelKlimovich/mydnex_blog.git
. -
Move the project to
/var/www/html
. -
Change the root directory to
DocumentRoot /path/to_my_project/public
folder. -
Install composer with
composer install & composer dump-autoload
. -
Install npm with
npm install & npm run dev
. -
Copy in the root of the project a new file
.env
from.env.example
withAPP_NAME=mydnex_blog APP_URL=http://localhost DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE= DB_USERNAME= DB_PASSWORD= EMAIL_FROM=
-
Create DATABASE in your database management system.
-
Execute :
php kernel migrate
in directory root to initialize DATABASE. -
If you want generate fake data in database execute :
php kernel seed
.Admin : [email protected] Password : password
-
If you want reset database then execute
php kernel migrate:fresh
.