Skip to content

Commit

Permalink
Merge pull request #1 from ArthurYdalgo/main
Browse files Browse the repository at this point in the history
Readme improvements, missing types and laravext version updated
  • Loading branch information
syntaxlexx authored Aug 24, 2024
2 parents 4363948 + bb767e7 commit c6d8ad0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,28 @@ cp .env.example .env
composer install
pnpm install
```
4. Migrate the database migrations
4. Generate the application key
```bash
php artisan key:generate
```
5. Migrate the database migrations
```bash
php artisan migrate
```
5. Seed the database
6. Seed the database
```bash
php artisan db:seed
```
6. Refresh IDE metadata files and generate typescript types
7. Refresh IDE metadata files and generate typescript types
```bash
composer ide-helper
composer generate-types
```
7. Start the development server
8. Start the development server
```bash
npm run dev
```
8. Visit the application at [http://laranext.test](http://laranext.test)
9. Visit the application at [http://laranext.test](http://laranext.test)

### Running tests
The starter-kit uses **Pest** for testing.
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion resources/js/types/laravext.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
declare module "@laravext/react" {
export const createLaravextApp: any;
export const createLaravextSsrApp: any;
export const Head: any;
export const Link: any;
export const laravextPageData: any;
export const version: any;
export const nexus: any;
export const nexusProps: any;
// export function sharedProps<T extends SharedProps>(): Page<T>; // the T generic will combine any type you add to it & the PageProps interface defined in @inertiajs/core
export const sharedProps: any;
export const routeParams: any;
export const routeName: any;
Expand Down

0 comments on commit c6d8ad0

Please sign in to comment.