Create a project using Next.js.
Bash
npx create-next-app@latestThe command will give you a prompt with several project types. We'll be starting with a skeleton project.
The prompt will be something similar to this.
Bash
What is your project named? my-appWould you like to use TypeScript? NoWould you like to use ESLint? NoWould you like to use Tailwind CSS? NoWould you like to use `src/` directory? YesWould you like to use App Router? (recommended) YesWould you like to customize the default import alias (@/*)? NoWhat import alias would you like configured? [Enter]After the prompt is finished, you can head over to the newly created project.
Bash
cd my-appnpm installInstall Appwrite
Appwrite provides a Node SDK that can be used in your Next.js apps. You can use Appwrite by installing the Node SDK as an NPM package. The Node SDK is intended for server-side use. If you want to use Appwrite in a client-side application, you should use the Web SDK instead.
Bash
npm install node-appwrite@20.0.0Was this page helpful?
Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.