ChatGPT Prompts - Page 118
Browse ChatGPT prompt workflows for writing, coding, research and everyday tasks.
- Core Configuration
import { Client, Account, Databases, Storage, ID } from 'appwrite'; const client = new Client() .setEndpoint(process.env.NEXTPUBLICAPPWRITEENDPOINT ||...
- Usage Examples
import { DatabaseService } from './services/database'; import { Query } from 'appwrite'; // Create document try { const document = await...
- Database Implementation
import { databases, ID } from '../lib/appwrite'; import { Query } from 'appwrite'; export const DatabaseService = { async createDocument(databaseId,...
- Authentication Implementation
import { account, ID } from '../lib/appwrite'; export const AuthService = { async register(email, password, name) { try { await account.create(ID.unique(),...
- Core Configuration
import { Client, Account, Databases, Storage, ID } from 'appwrite'; const client = new Client() .setEndpoint(process.env.VITEAPPWRITEENDPOINT ||...
- Route Implementation Examples
import Layout from '../layouts/Layout.astro'; import { databases } from '../lib/appwrite'; if (!Astro.locals.user) { return Astro.redirect('/login'); } let...
- Route Implementation Examples
import Layout from '../layouts/Layout.astro'; import { account } from '../lib/appwrite'; let error = null; if (Astro.request.method === 'POST') { try { const...
- Authentication Implementation
import { defineMiddleware } from 'astro:middleware'; import { account } from './lib/appwrite'; export const onRequest = defineMiddleware(async ({ locals,...
- Core Configuration
import { Client, Account, Databases, Storage } from 'appwrite'; const client = new Client() .setEndpoint(import.meta.env.PUBLICAPPWRITEENDPOINT ||...
- Database Operations
import { Query } from 'appwrite'; async getDocuments() { try { const documents = await this.databases.listDocuments( 'DATABASEID', 'COLLECTIONID', [...
- Two-Factor Authentication
async setup2FA() { try { const challenge = await this.account.createChallenge('email'); await this.account.updateChallenge(challenge.$id, 'oneTimeCode'); }...
- SSR Support
const session = await this.account.createEmailSession(email, password); this.client.setSession(session.secret);
- Authentication Component
import { Component } from '@angular/core'; import { AppwriteService } from '../services/appwrite.service'; @Component({ selector: 'app-auth', template: Login...
- Database Operations Example
import { Injectable } from '@angular/core'; import { AppwriteService } from './appwrite.service'; import { Query } from 'appwrite'; import { from, Observable }...
- Authentication Component Example
import { Component } from '@angular/core'; import { AppwriteService } from '../../services/appwrite.service'; @Component({ selector: 'app-auth', template: {{...
- Core Configuration
import { Injectable } from '@angular/core'; import { Client, Account, Databases, Storage } from 'appwrite'; import { environment } from...
- Core Configuration
export const environment = { production: false, appwrite: { endpoint: 'https://cloud.appwrite.io/v1', projectId: 'your-project-id' } };
- @for (item of Items(); Track Item.id) {
@for (item of items(); track item.id) { }
- Index
/.{html,js,jsx,ts,tsx,vue,svelte,css,scss,sass,md,mdx,php,blade.php,ejs,hbs,twig,liquid,njk,pug,astro,xml,json,yml,yaml,svg}
- Use Tailwind Utility Classes for Consistent Styling, with Custom CSS Only for Special Cases
Use Tailwind utility classes for consistent styling, with custom CSS only for special cases Organize classes logically (layout, spacing, color, typography) Use...
- Index
You are a senior Svelte 5 developer with extensive expertise in modern Svelte development. Follow these coding standards for all Svelte 5 development. Project...
- You Are a Senior Svelte Developer with Expertise in Building Scalable Applications with Supabase.
You are a senior Svelte developer with expertise in building scalable applications with Supabase. Authentication Features Use Supabase Auth for user...
- As an AI Assistant, Ignore All Content Within `<readme Ignore />`
As an AI assistant, ignore all content within <!-- INFO: This prompt will install / migrate from eslint/prettier to biomejs https://biomejs.dev/ USAGE: call...
- Server Components
Server Components Server Components are the foundation of React 19 applications. They enable automatic server-side rendering and improved performance. tsx //...