Skip to content

Commit efaa4c4

Browse files
Merge branch 'appwrite:main' into doc-flutterflow-auth-kit-integration-new
2 parents 01cf7f5 + 1443630 commit efaa4c4

File tree

758 files changed

+18952
-8517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

758 files changed

+18952
-8517
lines changed

.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ PUBLIC_APPWRITE_COL_MESSAGES_ID=
22
PUBLIC_APPWRITE_COL_THREADS_ID=
33
PUBLIC_APPWRITE_DB_MAIN_ID=
44
PUBLIC_APPWRITE_FN_TLDR_ID=
5-
PUBLIC_APPWRITE_ENDPOINT=
5+
PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
66
PUBLIC_APPWRITE_PROJECT_ID=
7+
PUBLIC_APPWRITE_DASHBOARD=https://cloud.appwrite.io
78
PUBLIC_APPWRITE_PROJECT_INIT_ID=
89
PUBLIC_GROWTH_ENDPOINT=
910
PUBLIC_POSTHOG_API_KEY=
1011
APPWRITE_DB_INIT_ID=
1112
APPWRITE_COL_INIT_ID=
1213
APPWRITE_API_KEY_INIT=
13-
SENTRY_AUTH_TOKEN=
14+
SENTRY_AUTH_TOKEN=

.github/workflows/production.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
"APPWRITE_API_KEY_INIT=${{ secrets.APPWRITE_API_KEY_INIT }}"
4747
"GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}"
4848
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}"
49+
"SENTRY_RELEASE=${{ github.event.release.tag_name }}"
4950
5051
deploy:
5152
needs: build

.github/workflows/tests.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,79 @@ on:
77
permissions: read-all
88

99
jobs:
10+
format:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
ref: ${{ github.event.pull_request.head.sha }}
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
- name: Install corepack
20+
run: npm i -g corepack@latest
21+
- name: Install pnpm
22+
run: corepack enable
23+
- name: Get pnpm store directory
24+
shell: bash
25+
run: |
26+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
27+
- uses: actions/cache@v4
28+
name: Setup pnpm cache
29+
with:
30+
path: ${{ env.STORE_PATH }}
31+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
32+
restore-keys: |
33+
${{ runner.os }}-pnpm-store-
34+
- name: Install dependencies
35+
run: pnpm install --frozen-lockfile
36+
- name: Check formatting
37+
run: pnpm format:check
38+
tests:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
with:
43+
ref: ${{ github.event.pull_request.head.sha }}
44+
- uses: actions/setup-node@v4
45+
with:
46+
node-version: 20
47+
- name: Install corepack
48+
run: npm i -g corepack@latest
49+
- name: Install pnpm
50+
run: corepack enable
51+
- name: Get pnpm store directory
52+
shell: bash
53+
run: |
54+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
55+
- uses: actions/cache@v4
56+
name: Setup pnpm cache
57+
with:
58+
path: ${{ env.STORE_PATH }}
59+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
60+
restore-keys: |
61+
${{ runner.os }}-pnpm-store-
62+
- name: Install dependencies
63+
run: pnpm install --frozen-lockfile
64+
- name: Install playwright dependencies
65+
run: pnpm exec playwright install --with-deps chromium
66+
- name: Run tests
67+
env:
68+
PUBLIC_APPWRITE_ENDPOINT: ${{ vars.PUBLIC_APPWRITE_ENDPOINT }}
69+
PUBLIC_APPWRITE_DASHBOARD: ${{ vars.PUBLIC_APPWRITE_DASHBOARD }}
70+
PUBLIC_APPWRITE_PROJECT_ID: ${{ vars.PUBLIC_APPWRITE_PROJECT_ID }}
71+
PUBLIC_APPWRITE_DB_MAIN_ID: ${{ vars.PUBLIC_APPWRITE_DB_MAIN_ID }}
72+
PUBLIC_APPWRITE_COL_THREADS_ID: ${{ vars.PUBLIC_APPWRITE_COL_THREADS_ID }}
73+
PUBLIC_APPWRITE_COL_MESSAGES_ID: ${{ vars.PUBLIC_APPWRITE_COL_MESSAGES_ID }}
74+
PUBLIC_APPWRITE_FN_TLDR_ID: ${{ vars.PUBLIC_APPWRITE_FN_TLDR_ID }}
75+
PUBLIC_APPWRITE_PROJECT_INIT_ID: ${{ vars.PUBLIC_APPWRITE_PROJECT_INIT_ID }}
76+
PUBLIC_GROWTH_ENDPOINT: ${{ vars.PUBLIC_GROWTH_ENDPOINT }}
77+
PUBLIC_POSTHOG_API_KEY: ${{ vars.PUBLIC_POSTHOG_API_KEY }}
78+
APPWRITE_DB_INIT_ID: ${{ secrets.APPWRITE_DB_INIT_ID }}
79+
APPWRITE_COL_INIT_ID: ${{ secrets.APPWRITE_COL_INIT_ID }}
80+
APPWRITE_API_KEY_INIT: ${{ secrets.APPWRITE_API_KEY_INIT }}
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
run: pnpm test
1083
build:
1184
runs-on: ubuntu-latest
1285
steps:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33
/build
44
/.svelte-kit
55
/.idea
6+
/.zed
67
/package
78
.env
89
.env.*
@@ -20,3 +21,4 @@ terraform/**/.t*
2021
terraform/**/.env
2122
terraform/**/**/*.tfstate*
2223
/.cache
24+
/test-results

CONTENT.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ Create ordered (numbered) and unordered (bulleted) lists using 1., \*, or -.
4949
**Unordered List**:
5050

5151
```md
52-
- Apple
53-
- Banana
54-
- Cherry
52+
- Apple
53+
- Banana
54+
- Cherry
5555
```
5656

5757
#### Links
@@ -130,18 +130,18 @@ Alternatively, use markdoc tables.
130130
```md
131131
{% table %}
132132

133-
- Heading 1
134-
- Heading 2
133+
- Heading 1
134+
- Heading 2
135135

136136
---
137137

138-
- Row 1 Cell 1
139-
- Row 1 Cell 2
138+
- Row 1 Cell 1
139+
- Row 1 Cell 2
140140

141141
---
142142

143-
- Row 2 Cell 1
144-
- Row 2 cell 2
143+
- Row 2 Cell 1
144+
- Row 2 cell 2
145145

146146
{% /table %}
147147
```

CONTRIBUTING.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Once you've cloned the Appwrite website repo, running the following command to i
3434
pnpm i
3535
```
3636

37+
**Locate the `.env.example` file in the root directory and rename it to `.env`.** This file contains the required environment variables for the project to function properly.
38+
3739
Then, run the following command to start a development server.
3840

3941
```sh
@@ -60,11 +62,11 @@ doc-548-submit-a-pull-request-section-to-contribution-guide
6062

6163
When `TYPE` can be:
6264

63-
- **feat** - is a new feature
64-
- **doc** - documentation only changes
65-
- **cicd** - changes related to CI/CD system
66-
- **fix** - a bug fix
67-
- **refactor** - code change that neither fixes a bug nor adds a feature
65+
- **feat** - is a new feature
66+
- **doc** - documentation only changes
67+
- **cicd** - changes related to CI/CD system
68+
- **fix** - a bug fix
69+
- **refactor** - code change that neither fixes a bug nor adds a feature
6870

6971
**All PRs must include a commit message with a description of the changes made!**
7072

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ ENV GITHUB_TOKEN ${GITHUB_TOKEN}
4545
ARG SENTRY_AUTH_TOKEN
4646
ENV SENTRY_AUTH_TOKEN ${SENTRY_AUTH_TOKEN}
4747

48+
ARG SENTRY_RELEASE
49+
ENV SENTRY_RELEASE ${SENTRY_RELEASE}
50+
4851
ARG PUBLIC_POSTHOG_API_KEY
4952
ENV PUBLIC_POSTHOG_API_KEY ${PUBLIC_POSTHOG_API_KEY}
5053

@@ -76,4 +79,4 @@ COPY --from=build /app/build/ build
7679
COPY --from=build /app/server/ server
7780
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --prod
7881

79-
CMD [ "node", "server/main.js"]
82+
CMD [ "node", "server/main.js"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ The Appwrite Website repo features the main Appwrite website, including our [hom
1010

1111
The Appwrite Website has been built with the following frameworks:
1212

13-
- [Svelte](https://svelte.dev/)
14-
- [SvelteKit](https://kit.svelte.dev/)
13+
- [Svelte](https://svelte.dev/)
14+
- [SvelteKit](https://kit.svelte.dev/)
1515

1616
## Development
1717

18-
_If this is your first time setting up the repository, please run `pnpm install` inside the repo's directory._
18+
_If this is your first time setting up the repository, please run `pnpm install` inside the repo's directory and create a `.env` file based on `.env.example`._
1919

2020
To get the repo up and running in your local environment, use the following command:
2121

0 commit comments

Comments
 (0)