From 6f44f13e97101725ad7572f1a62f2f076c7dbcca Mon Sep 17 00:00:00 2001 From: Evelina Berg Date: Wed, 18 Oct 2023 19:28:40 +0200 Subject: [PATCH] Update step 1-4 --- .../docs/tutorials/nuxt/step-1/+page.markdoc | 2 + .../docs/tutorials/nuxt/step-2/+page.markdoc | 41 ++++------ .../docs/tutorials/nuxt/step-3/+page.markdoc | 6 +- .../docs/tutorials/nuxt/step-4/+page.markdoc | 74 +++++++++++++------ 4 files changed, 72 insertions(+), 51 deletions(-) diff --git a/src/routes/docs/tutorials/nuxt/step-1/+page.markdoc b/src/routes/docs/tutorials/nuxt/step-1/+page.markdoc index 429f8698ab..b709a1a77e 100644 --- a/src/routes/docs/tutorials/nuxt/step-1/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt/step-1/+page.markdoc @@ -3,6 +3,8 @@ layout: tutorial title: Build an ideas tracker with Nuxt description: Learn to build an idea tracker app with Appwrite and Nuxt with authentication, databases and collections, queries, pagination, and file storage. step: 1 +difficulty: beginner +readtime: 12 back: /docs --- diff --git a/src/routes/docs/tutorials/nuxt/step-2/+page.markdoc b/src/routes/docs/tutorials/nuxt/step-2/+page.markdoc index d2d884fb00..9d419a6ef8 100644 --- a/src/routes/docs/tutorials/nuxt/step-2/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt/step-2/+page.markdoc @@ -1,7 +1,7 @@ --- layout: tutorial -title: Build an ideas tracker with Nuxt -description: Learn to build an idea tracker app with Appwrite and Nuxt +title: Create app +description: Create a Nuxt app project and integrate with Appwrite step: 2 --- @@ -9,7 +9,6 @@ step: 2 Create a Nuxt app with the `npx init` command. - ```sh npx nuxi@latest init ideas-tracker ``` @@ -28,19 +27,19 @@ You can start the development server to watch your app update in the browser as npm run dev ``` -# Pages and layouts for routing {% #pages-and-layout-for-routing %} - -In Nuxt, directories help organize the codebase and minimize boilerplate. The purpose is -making it easy to find and manage different aspect of your application. +# Setup files {% #setup-files %} -The files added to the `pages` directory will automatically become a route. Nuxt will look for a layout (can be more than one) to accompany a page -in the `layouts` directory. When these files have been created we can edit the `app.vue` file to render our pages. Now we will have a working app to verify our changes in the development server throughout the tutorial. -As an additional step, by adding [Appwrite's Pink Design system]('https://pink.appwrite.io/') we will also have a global layout system to help with the layout. +In Nuxt, directories help organize the codebase and minimize boilerplate. +The purpose is making it easy to find and manage different aspect of your application. +The files added to the `pages` directory will automatically become a route. +Nuxt will look for a layout in the `layouts` directory to render a page layout. +Without a layout file in this directory, the routing won't work +When these files have been created the `app.vue` file needs to edited to render these pages instead of the standard welcome page. +Then, we will have a working app where we can verify our changes in the browser throughout the tutorial. +As an additional step, we will be adding [Appwrite's Pink Design system]('https://pink.appwrite.io/') to have a global design system to help with the layout. -### 1. Add a page - -Create file `src/pages/index.vue` and add the following code: +First, add a page by creating the file `src/pages/index.vue` and add the following code. ```vue ``` - -### 2. Add a default layout - - a file `src/layouts/default.vue` and insert the following code: +Create the file `src/layouts/default.vue` to add the default layout. ```vue