You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/client/sdks/web/next-js.mdx
+27-3Lines changed: 27 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,22 @@ In this tutorial, we’ll explore how to enhance a Next.js application with offl
13
13
14
14
### Next.js Project Setup
15
15
Let's start by bootstrapping a new Next.js application using [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
16
-
```shell
17
-
pnpm dlx create-next-app@latest <project_name>
16
+
<CodeGroup>
17
+
18
+
```shell npm
19
+
npx create-next-app@latest my-powersync-app
20
+
```
21
+
22
+
```shell yarn
23
+
yarn create next-app my-powersync-app
18
24
```
19
25
26
+
```shell pnpm
27
+
pnpm create next-app my-powersync-app
28
+
```
29
+
30
+
</CodeGroup>
31
+
20
32
When running this command you'll be presented with a few options. The PowerSync suggested selection for the setup options Next.js offers are:
21
33
```shell
22
34
Would you like to use TypeScript? Yes
@@ -40,10 +52,22 @@ Using PowerSync in a Next.js application will require the use of the [PowerSync
40
52
41
53
In addition to this we'll also install [`@powersync/react`](https://www.npmjs.com/package/@powersync/react), which provides several hooks and providers for easier integration.
0 commit comments