Ship high-performance Next.js apps for extremely cheap using Appwrite.
-
Clone the repository
git clone https://github.com/ChiragAgg5k/jstack-appwrite-template cd jstack-appwrite-template
-
Install dependencies
bun i # or npm install
-
Create a
.env.local
filecp .env.example .env.local
-
Run the development server
bun dev # or npm run dev
Note: Example env consists of an example Appwrite project. You can use your own Appwrite project by updating the env variables.
-
Go to Appwrite Console, sign up if you don't have an account and create a new project
-
Once project is created, head over to Project Overview and copy
projectId
andendpoint
-
Update these values in the
appwrite.json
file - here- "projectId": "686a271700323696d223", - "endpoint": "https://fra.cloud.appwrite.io/v1", + "projectId": "YOUR_PROJECT_ID", + "endpoint": "YOUR_ENDPOINT",
-
For the next step, make sure you have Appwrite CLI installed. You can install it by running the following command:
npm install -g appwrite-cli # or brew install appwrite
For more documentation on the Appwrite CLI, check out the official documentation.
-
Run the following command to push the changes to Appwrite:
appwrite push
-
Run the following command to generate the Appwrite types
Check out the blog post for more details: JStack + Appwrite