My solution of test task for WebleX company
-
- Install npm modules
-
- Run webpack to build sources
-
- Initialize MySQL database
-
- Run server
- Just run install node modules command:
$ npm install
- Just run webpack:
$ npm run webpack
-
First, set MySQL login and password in file src/php/settings.php
-
Then rebuild project (run webpack)
-
Then run via php file src/php/init.php
$ php build/init.php
Note: don't use root mysql user, create another user with some password
Warning: create your user properly and everything will work
- Just run build/server.php and open http:https://localhost:8080 in your browser:
$ php -S localhost:8080 build/server.php