Skip to content

Commit 8658f36

Browse files
committed
added install script
1 parent c811fea commit 8658f36

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,11 @@ Missing something? Feel free to tell me what would be a nice addition to this st
4848

4949
## Getting started
5050

51-
Take this steps:
52-
53-
- git clone
54-
- run `composer install`
55-
- run `npm install`
56-
- npm run dev
57-
- copy .env.example to .env
58-
- php artisan key:generate
59-
- modify .env file
60-
- create /database/database.sqlite file or use another database in .env
61-
- migrate database `php artisan migrate`
62-
63-
Make sure to set your current domain:
51+
You can quick start with this starter-kit by running the **`bin/install.sh`** script or manually run the containing commands.
52+
53+
After that you can loggin with `text@example.com` and the password `password`
54+
55+
Make sure to set your current domain in the .env file:
6456

6557
```
6658
APP_URL=http://vue-laravel-spa.test

bin/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
if [ ! -f composer.json ]; then
4+
echo "Please make sure to run this script from the root directory of this repo."
5+
exit 1
6+
fi
7+
8+
cp -v .env.example .env
9+
composer install --no-interaction
10+
php artisan key:generate
11+
touch database/database.sqlite
12+
php artisan migrate --seed
13+
npm install
14+
npm run build

database/seeders/DatabaseSeeder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class DatabaseSeeder extends Seeder
1313
*/
1414
public function run(): void
1515
{
16-
// User::factory(10)->withPersonalTeam()->create();
16+
// User::factory(10)->create();
1717

18-
User::factory()->withPersonalTeam()->create([
18+
User::factory()->create([
1919
'name' => 'Test User',
2020
'email' => 'test@example.com',
2121
]);

0 commit comments

Comments
 (0)