Skip to content

Commit

Permalink
docs: minor changes in nextjs doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Nov 2, 2024
1 parent 5412592 commit 2f477b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/content/docs/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"permalink": "next-js",
"title": "Next.js",
"contentPath": "/next-js.md",
"category": "Guides"
"category": "Frameworks"
}
]
22 changes: 13 additions & 9 deletions docs/content/docs/next-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
summary: Setup a Monorepo with AdonisJS, Next.js and Tuyau
---

# Setup Tuyau with Next.js

In this guide, we'll be setting up a Monorepo with AdonisJS, Next.js and Tuyau.

:::tip
You can find an example of it in this [repository](https://github.com/mohitxskull/tuyau-nextjs-adonisjs-stackblitz-demo).

# Monorepo
:::

We'll be using `pnpm` to manage the dependencies in our Monorepo.

Expand All @@ -33,15 +35,15 @@ acme
└── pnpm-workspace.yaml
```
## AdonisJS
## Adding AdonisJS
Now let's do a `cd` to our `apps` folder and create a adonisjs project:
Now let's do a `cd` to our `apps` folder and create a AdonisJS project:
```sh
pnpm create adonisjs@latest backend
```

For more information on creating an adonisjs project, check out [adonisjs](https://docs.adonisjs.com/guides/getting-started/installation).
For more information on creating an AdonisJS project, check out [adonisjs](https://docs.adonisjs.com/guides/getting-started/installation).

```
acme
Expand All @@ -51,11 +53,11 @@ acme
└── pnpm-workspace.yaml
```

## Tuyau
## Adding Tuyau

For installation of the Tuyau framework, check out the [installation](/docs/installation) guide.
For installation and configuration of Tuyau, check out the [installation](/docs/installation) guide.

## Next.js
## Adding Next.js

To create a Next.js project, run the following command in `./acme/apps` folder:

Expand Down Expand Up @@ -141,4 +143,6 @@ If you see any errors coming from `../backend` folder, check them and if they ar
export * from './api.js'
```

As your project grows you will need to add more reference files here.
As your project grows you may need to add more reference files here.


0 comments on commit 2f477b3

Please sign in to comment.