- Composer.
- PHP version 7.0 or above.
Clone the repository
$ git clone https://github.com/xXZang3tsuXx/Dinlanka_Symfony.git
Move inside the clone repository and run composer install to install all the modules required
$ composer install
Make sure MYSQL is running in the background and execute
( If you have custom setup running on MYSQL please configure parameters.yml file in app/config )
$ php bin/console doctrine:create:database
Create the designated schema
$ php bin/console doctrine:schema:create
Thats all !!
Run the server using
$ php bin/console server:run
Open browser and change url to http://localhost:8000 access the server.
Browse to http://localhost:8000/register
create a user with a valid email and a password
Suppose that you use USERNAME for Username field,
To promote USERNAME to ADMIN_ROLE
$ php bin/console fos:user:promote USERNAME ROLE_ADMIN
Then browse to http://localhost:8000/admin or http://localhost:8000/login & access using the created username and password.