E540 docs/improve hacktoberfest readme by sameelkazi · Pull Request #10603 · appwrite/appwrite · GitHub
[go: up one dir, main page]

Skip to content

Conversation

sameelkazi
Copy link
  • Add beginner-friendly authentication tutorial
  • docs: enhance Hacktoberfest guide with contributor tips\n\n- Add comprehensive tips for new contributors\n- Include pre-contribution guidelines and best practices \n- Provide post-submission advice for better engagement\n- Emphasize quality over quantity for meaningful contributions

Development Environment Setup added 2 commits October 5, 2025 21:50
Added a complete tutorial showing basic auth flow with Appwrite:
- User registration and login forms
- Profile display and logout
- Session management
- Error handling examples
- Common troubleshooting tips

This fills a gap I noticed - most examples show individual methods but not
how they work together in a real app. Perfect for developers just starting
with Appwrite who want to understand the full authentication flow.

Based on my own experience learning Appwrite - this tutorial would have
saved me hours when I was getting started!
…rehensive tips for new contributors\n- Include pre-contribution guidelines and best practices \n- Provide post-submission advice for better engagement\n- Emphasize quality over quantity for meaningful contributions
Copy link
Contributor
coderabbitai bot commented Oct 6, 2025
📝 Walkthrough

Walkthrough

Adds a new “Quick Tips for New Contributors” section to HACKTOBERFEST.md with guidance before starting, making contributions, post-PR steps, and a closing reminder. Introduces a new documentation tutorial at docs/tutorials/simple-auth-flow.md describing a complete Appwrite-based authentication flow for a simple web app. The tutorial includes HTML layout, JavaScript initialization (Client/Account), registration, email/password session login, fetching current user, logout, UI state handling, error handling, a check-on-load routine, common issues, next steps, and a full combined example.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title Check ⚠️ Warning The title only references improvements to the Hacktoberfest readme but omits the new authentication tutorial added in this pull request, so it does not fully summarize the primary changes. A more comprehensive title would give an immediate overview of both significant updates. Update the pull request title to mention both the new simple authentication tutorial and the Hacktoberfest guide enhancements, for example “docs: add simple auth tutorial and improve Hacktoberfest guide.”
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed The pull request description clearly outlines both the addition of the beginner-friendly authentication tutorial and enhancements to the Hacktoberfest guide with contributor tips, which aligns with the changes in the raw_summary. It directly reflects the files added and modified, making it on-topic.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor
@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e2f4d38 and babc5a1.

📒 Files selected for processing (2)
  • HACKTOBERFEST.md (1 hunks)
  • docs/tutorials/simple-auth-flow.md (1 hunks)

Comment on lines +80 to +88
import { Client, Account } from "appwrite";

// Initialize the Appwrite client
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Replace with your endpoint
.setProject('YOUR_PROJECT_ID'); // Replace with your project ID

const account = new Account(client);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix ES module usage in the browser example.

The tutorial loads Appwrite via a CDN script tag, but auth.js still uses import { Client, Account } from "appwrite";. In a plain browser setup that isn’t marked type="module", this syntax throws and the tutorial fails. Since the CDN already exposes Appwrite on window, drop the import and instantiate through the global:

-import { Client, Account } from "appwrite";
-
 // Initialize the Appwrite client
-const client = new Client()
+const client = new Appwrite.Client()
     .setEndpoint('https://cloud.appwrite.io/v1')
     .setProject('YOUR_PROJECT_ID');
 
-const account = new Account(client);
+const account = new Appwrite.Account(client);

Apply the same change in the “Complete Code” section so the two snippets stay in sync.

Also applies to: 222-230

🤖 Prompt for AI Agents
In docs/tutorials/simple-auth-flow.md around lines 80-88 (and likewise 222-230),
the browser example incorrectly uses ES module imports (import { Client, Account
} from "appwrite";) while the page loads Appwrite via CDN and is not using
type="module". Remove the import lines and instantiate the SDK from the global
window.Appwrite object instead (use new Appwrite.Client() and new
Appwrite.Account(client)), and make the identical change in the “Complete Code”
section so both snippets remain consistent.

Copy link
github-actions bot commented Oct 6, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
binutils 2.42-r0 CVE-2025-0840 HIGH
git 2.45.3-r0 CVE-2025-46334 HIGH
git 2.45.3-r0 CVE-2025-48384 HIGH
git 2.45.3-r0 CVE-2025-48385 HIGH
git-init-template 2.45.3-r0 CVE-2025-46334 HIGH
git-init-template 2.45.3-r0 CVE-2025-48384 HIGH
git-init-template 2.45.3-r0 CVE-2025-48385 HIGH
icu 74.2-r0 CVE-2025-5222 HIGH
icu-data-en 74.2-r0 CVE-2025-5222 HIGH
icu-dev 74.2-r0 CVE-2025-5222 HIGH
icu-libs 74.2-r0 CVE-2025-5222 HIGH
libecpg 16.8-r0 CVE-2025-8714 HIGH
libecpg 16.8-r0 CVE-2025-8715 HIGH
libecpg-dev 16.8-r0 CVE-2025-8714 HIGH
libecpg-dev 16.8-r0 CVE-2025-8715 HIGH
libexpat 2.6.4-r0 CVE-2024-8176 HIGH
libexpat 2.6.4-r0 CVE-2025-59375 HIGH
libpq 16.8-r0 CVE-2025-8714 HIGH
libpq 16.8-r0 CVE-2025-8715 HIGH
libpq-dev 16.8-r0 CVE-2025-8714 HIGH
libpq-dev 16.8-r0 CVE-2025-8715 HIGH
libxml2 2.12.7-r0 CVE-2024-56171 HIGH
libxml2 2.12.7-r0 CVE-2025-24928 HIGH
libxml2 2.12.7-r0 CVE-2025-27113 HIGH
libxml2 2.12.7-r0 CVE-2025-32414 HIGH
libxml2 2.12.7-r0 CVE-2025-32415 HIGH
postgresql16-dev 16.8-r0 CVE-2025-8714 HIGH
postgresql16-dev 16.8-r0 CVE-2025-8715 HIGH
pyc 3.12.9-r0 CVE-2024-12718 HIGH
pyc 3.12.9-r0 CVE-2025-4138 HIGH
pyc 3.12.9-r0 CVE-2025-4330 HIGH
pyc 3.12.9-r0 CVE-2025-4517 HIGH
python3 3.12.9-r0 CVE-2024-12718 HIGH
python3 3.12.9-r0 CVE-2025-4138 HIGH
python3 3.12.9-r0 CVE-2025-4330 HIGH
python3 3.12.9-r0 CVE-2025-4517 HIGH
python3-pyc 3.12.9-r0 CVE-2024-12718 HIGH
python3-pyc 3.12.9-r0 CVE-2025-4138 HIGH
python3-pyc 3.12.9-r0 CVE-2025-4330 HIGH
python3-pyc 3.12.9-r0 CVE-2025-4517 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2024-12718 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2025-4138 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2025-4330 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2025-4517 HIGH
sqlite-libs 3.45.3-r1 CVE-2025-29087 HIGH
xz 5.6.2-r0 CVE-2025-31115 HIGH
xz-libs 5.6.2-r0 CVE-2025-31115 HIGH
golang.org/x/crypto v0.31.0 CVE-2025-22869 HIGH
golang.org/x/oauth2 v0.24.0 CVE-2025-22868 HIGH
stdlib 1.22.10 CVE-2025-47907 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0