Skip to content

Commit

Permalink
added install script
Browse files Browse the repository at this point in the history
  • Loading branch information
tobischulz committed Jun 1, 2024
1 parent c811fea commit 8658f36
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,11 @@ Missing something? Feel free to tell me what would be a nice addition to this st

## Getting started

Take this steps:

- git clone
- run `composer install`
- run `npm install`
- npm run dev
- copy .env.example to .env
- php artisan key:generate
- modify .env file
- create /database/database.sqlite file or use another database in .env
- migrate database `php artisan migrate`

Make sure to set your current domain:
You can quick start with this starter-kit by running the **`bin/install.sh`** script or manually run the containing commands.

After that you can loggin with `text@example.com` and the password `password`

Make sure to set your current domain in the .env file:

```
APP_URL=http://vue-laravel-spa.test
Expand Down
14 changes: 14 additions & 0 deletions bin/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

if [ ! -f composer.json ]; then
echo "Please make sure to run this script from the root directory of this repo."
exit 1
fi

cp -v .env.example .env
composer install --no-interaction
php artisan key:generate
touch database/database.sqlite
php artisan migrate --seed
npm install
npm run build
4 changes: 2 additions & 2 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class DatabaseSeeder extends Seeder
*/
public function run(): void
{
// User::factory(10)->withPersonalTeam()->create();
// User::factory(10)->create();

User::factory()->withPersonalTeam()->create([
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
Expand Down

0 comments on commit 8658f36

Please sign in to comment.