Requirements | Versions |
---|---|
LARAVEL | 10.x |
PHP | ^8.1.10 |
MYSQL | ^10.4.25 |
-
Clone this repository.
$ git clone https://github.com/ericnicdao069/backend-dev-exam.git
-
Recreate environment variable file.
$ cp .env.example .env
-
Install composer and npm.
$ composer install && npm install
-
Generate Application Key.
$ php artisan key:generate
-
Create your DB and update your DB configs in .env.
$ DB_CONNECTION=mysql $ DB_HOST=127.0.0.1 $ DB_PORT=3306 $ DB_DATABASE=laravel $ DB_USERNAME=root $ DB_PASSWORD=
-
Execute Database Migration and Seeders.
$ php artisan migrate --seed
-
Create a symlink for Storage in Public Directory.
$ php artisan storage:link
-
Generate Ziggy routes.
$ php artisan ziggy:generate
-
Run local server.
$ php artisan serve
-
Front Build.
```bash
$ npm run dev
$ npm run build
```