-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,18 +39,18 @@ | |
### Installation | ||
|
||
* clone from GitHub | ||
* run `yarn` and `composer install` to install all of your deps | ||
* run `pnpm i` and `composer install` to install all of your deps | ||
* copy `.env.example` to `.env` and configure it to your likings | ||
* TL;DR | ||
```bash | ||
git clone [email protected]:fumeapp/laranuxt.git; cd laranuxt; yarn; c****omposer install; cp .env.example .env; | ||
git clone [email protected]:fumeapp/laranuxt.git; cd laranuxt; pnpm i; composer install; cp .env.example .env; | ||
``` | ||
* Feel free to delete excess media in `/resources/` | ||
|
||
|
||
### Local Environment | ||
* run `yarn dev` in one terminal for our nuxt dev setup | ||
* run `yarn api` (alias for `./artisan serve`) in another terminal for our laravel API | ||
* run `pnpm run dev` in one terminal for our nuxt dev setup | ||
* run `pnpm run api` (alias for `./artisan serve`) in another terminal for our laravel API | ||
|
||
### Api and Authentication | ||
|
||
|
@@ -68,7 +68,7 @@ console.log(api.$user.name); | |
const redirect = await api.login(result) | ||
if (redirect) await router.push({path: redirect}) | ||
``` | ||
* Once logged on, you have the boolean `api.loggedIn` and the object `api.$user` | ||
* Once logged on, you have the ref<boolean> `api.loggedIn` and the object `api.$user` | ||
```html | ||
<img class="w-8 h-8 rounded-full bg-blue-400" :src="api.$user.avatar" alt="User Avatar"> | ||
``` | ||
|