- NodeJS https://nodejs.org/en/
- Composer https://getcomposer.org/
-
Clone the project
-
Go to the folder application using cd command on your cmd or terminal
-
Run
composer install --ignore-platform-reqs
andnpm install
-
Open your config/config.php file and change the database name (DB_DATABASE) to whatever you have, username (DB_USERNAME) and password (DB_PASSWORD) field correspond to your configuration.
-
Import notebooks.sql
-
Run
npm run dev
(Runnpm run watch
for development) (Runnpm run build
for production)
-
Go to your xampp extra folder. Ex.: D:\xampp\apache\conf\extra
-
Open httpd-vhosts.conf
-
Add:
<VirtualHost *:80> ServerName notebooks.test DocumentRoot "C:\xampp\htdocs\Notebooks-php\public" <Directory "C:\xampp\htdocs\Notebooks-php\public"> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all Options Indexes FollowSymLinks </Directory> </VirtualHost>
NOTE! The "path to project" has to point to the public folder in the project (e.g.: "C:\xampp\htdocs\Notebooks-php\public")!
-
Open C:\Windows\System32\drivers\etc
-
Add
127.0.0.1 notebooks.test
-
Restart xampp and go to http://notebooks.test in a browser
Admin URL: /admin