This is a demo project for Appwrite and NextJS integration.
git clone https://github.com/SanjayDevTech/appwrite-nextjs-demo
- npm
- yarn
- pnpm
npm install
npm run dev
Open http://localhost:3000 with your browser to see the result.
Follow the Appwrite installation guide to get Appwrite up and running on your machine.
Create a new project in Appwrite console.
Create a new database in Appwrite console.
Create a new collection in Appwrite console.
With permission:
- users:
- create
- read
With Attribute:
- author: string, required
- content: string, required
- image: string, required
With index:
- content: fulltext
Create a new storage bucket in Appwrite console.
With permission:
- users:
- create
- read
Create a new file named .env.local
in the root of the project.
Use sample.env
as a reference.
Go to the Appwrite console and get the following details from the project you created.
- endpoint
- project id
- database id
- collection id
- bucket id