Skip to content

Commit 6eb0db4

Browse files
Merge pull request #12 from christyjacob4/upgrade-0.15
Feat: Upgrade project to new Appwrite SDK
2 parents 653d0fe + d42ad33 commit 6eb0db4

File tree

7 files changed

+71
-65
lines changed

7 files changed

+71
-65
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_APPWRITE_PROJECT_ID=607dd16494c6b
2+
VITE_APPWRITE_ENDPOINT=

.gitpod.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tasks:
2+
- init: npm install
3+
command: npm run dev

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ Everything you need to build a Svelte project, powered by [`create-svelte`](http
44

55
## Appwrite Setup
66

7-
1. Rename `_appwrite.json` to `appwrite.json`
8-
2. Create Appwrite project with ID `607dd16494c6b`
9-
3. `appwrite deploy collection` (you might need to install AppwriteCLI, do `appwrite client --endpoint YOUR_ENDPOINT` and `appwrite login`)
7+
1. Create `.env` from `.env.example` and fill in your Appwrite instance data
8+
1. Create Appwrite project with ID `607dd16494c6b`
9+
2. Enter folder `cd appwrite`
10+
3. Run `appwrite deploy collection` (you might need to install AppwriteCLI, do `appwrite client --endpoint YOUR_ENDPOINT` and `appwrite login`)
1011
4. Manually create `postThumbnails` Storage Bucket with 10MB max size, extensions `png jpg jpeg` and `file-level` permissions
1112
5. Enable `Google` OAuth in Users settings
1213

_appwrite.json appwrite/appwrite.json

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"projectName": "30DaysOfAppwrite",
44
"collections": [
55
{
6+
"databaseId": "default",
67
"$id": "posts",
78
"$read": [],
89
"$write": [],
@@ -99,6 +100,7 @@
99100
]
100101
},
101102
{
103+
"databaseId": "default",
102104
"$id": "profiles",
103105
"$read": [],
104106
"$write": [],
@@ -136,6 +138,7 @@
136138
]
137139
},
138140
{
141+
"databaseId": "default",
139142
"$id": "comments",
140143
"$read": ["role:all"],
141144
"$write": ["role:member"],

package-lock.json

+8-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@sveltejs/adapter-static": "^1.0.0-next.34",
4141
"@sveltejs/adapter-vercel": "^1.0.0-next.58",
4242
"@tailwindcss/typography": "^0.5.2",
43-
"appwrite": "^8.0.1",
43+
"appwrite": "^9.0.1",
4444
"easymde": "^2.15.0",
4545
"marked": "^4.0.16"
4646
}

0 commit comments

Comments
 (0)