Skip to content

Commit

Permalink
chore: add CONTRIBUTING.md (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Enzo Innocenzi <[email protected]>
  • Loading branch information
ricardov03 and innocenzi authored Dec 28, 2023
1 parent a653d52 commit 40ffe38
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
63 changes: 63 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
## Installation

1. Clone the repository:

```shell
git clone [email protected]:hybridly/demo.git blue-bird && cd blue-bird
```

2. Use SQLite to simplify installation by creating a file database.

```shell
touch database/bluebird.db
```

3. Create a new `.env` file by copying `.env.example` and include the required database information to complete the migration.

```shell
cp .env.example .env
```

4. Fill the following environment variables:

```
DB_CONNECTION=sqlite
DB_DATABASE=database/bluebird.db
```

1. Install the dependencies using `pnpm` (we recommend using [`ni`](https://github.com/antfu/ni) if you are used to other package managers):

```shell
pnpm install # or `ni`
composer install
```

6. Run the migrations:

```shell
php artisan migrate --seed
```

7. Secure your local site development by using the Herd UI or with Valet on the console by using:

```shell
valet secure blue-bird
```

8. Start the Vite server and enjoy!

```shell
pnpm run dev # or `nr dev`
```

## Troubleshooting

If you are receiving this error:

```
error when starting dev server:
Error: Unable to find Valet certificate files for your host [blue-bird.test]. Ensure you have run "valet secure".
```

- Run `valet secure`
- Or edit `vite.config.ts` and remove the `valetTls` line.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
<br />
This is the repository hosting the demonstration application of Hybdrily.
<br />
Check out the <a href="https://github.com/hybridly/hybridly">main repository</a> for more information.
Check out the <a href="https://github.com/hybridly/demo/blob/main/CONTRIBUTING.md">installation guide</a> to get started, or the <a href="https://github.com/hybridly/hybridly">main repository</a> for more information.
</div>


<p align="center">
<br />
<br />
Expand Down

0 comments on commit 40ffe38

Please sign in to comment.