Skip to content

Commit f21cca0

Browse files
committed
Merge branch 'after-project-setup' into demo
2 parents 0418e56 + 3a6c959 commit f21cca0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,26 @@
33
## Installation
44
Make sure you have environment setup properly. You will need MySQL, PHP8.1 and composer.
55

6+
### Install Laravel Website + API
67
1. Download the project (or clone using GIT)
78
2. Copy `.env.example` into `.env` and configure database credentials
89
3. Navigate to the project's root directory using terminal
910
4. Run `composer install`
1011
5. Set the encryption key by executing `php artisan key:generate --ansi`
11-
6. Run migrations `php artisan migrate`
12+
6. Run migrations `php artisan migrate --seed`
1213
7. Start local server by executing `php artisan serve`
14+
8. Open new terminal and navigate to the project root directory
15+
9. Run `npm install`
16+
10. Run `npm run dev` to start vite server for Laravel frontend
17+
18+
### Install Vue.js Admin Panel
19+
1. Navigate to `backend` folder
20+
2. Run `npm install`
21+
3. Copy `backend/.env.example` into `backend/.env`
22+
4. Make sure `VITE_API_BASE_URL` key in `backend/.env` is set to your Laravel API host (Default: http://localhost:8000)
23+
5. Run `npm run dev`
24+
6. Open Vue.js Admin Panel in browser and login with
25+
```
26+
27+
admin123
28+
```

0 commit comments

Comments
 (0)