Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Working on Appwrite.io

Torsten Dittmann TorstenDittmann

💻
Working on Appwrite.io
View GitHub Profile
View sdk.ts
import 'isomorphic-form-data';
import { fetch } from 'cross-fetch';
namespace Models {
/**
* Documents List
*/
export type DocumentList<Document extends Models.Document> = {
/**
* Total number of documents documents that matched your query.
View docker-compose.yml
# WARNING!
# This is a development version of THE Appwrite docker-compose.yml file.
# Avoid using this file in your production environment.
# We're exposing here sensitive ports and mounting code volumes for rapid development and debugging of the server stack.
version: '3'
x-env-defaults: &x-env-defaults |-
_APP_ENV
_APP_LOCALE
View sdk.ts
import 'isomorphic-form-data';
import { fetch } from 'cross-fetch';
type Payload = {
[key: string]: any;
}
type Headers = {
[key: string]: string;
}
@TorstenDittmann
TorstenDittmann / .env
Last active Sep 15, 2021 — forked from eldadfux/.env
Appwrite 0.10 - Stack
View .env
_APP_ENV=production
_APP_LOCALE=en
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
_APP_SYSTEM_EMAIL_NAME=Appwrite
_APP_SYSTEM_EMAIL_ADDRESS=team@appwrite.io
_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=security@appwrite.io
_APP_SYSTEM_RESPONSE_FORMAT=
_APP_OPTIONS_ABUSE=disabled
@TorstenDittmann
TorstenDittmann / nginx.conf
Last active Sep 13, 2021
NGinx + Realtime
View nginx.conf
events {
worker_connections 1024;
}
http {
server {
listen 80;
listen 443;
# config for setting up and handling Appwrite SSL
@TorstenDittmann
TorstenDittmann / index.d.ts
Created May 31, 2021
NodeJS Typescript Definitions
View index.d.ts
declare module "package-name" {
export class Client {
/**
* Set endpoint.
*
* @param {string} endpoint
*
* @return {this}
*/
setEndpoint(endpoint: string): Client;
View install.ps1
# Love open-source, dev-tooling and passionate about code as much as we do?
# ---
# We're always looking for awesome hackers like you to join our 100% remote team!
# Check and see if you find any relevant position @ https://appwrite.io/company/careers
# (and let us know you found this message...)
# This script contains hidden JS code to allow better readability and syntax highlighting
# You can use "View source" of this page to see the full script.
# Appwrite CLI location
@TorstenDittmann
TorstenDittmann / ChristmasTree.java
Last active Oct 15, 2019
JAVA - Weihnachtsbaum in Konsole
View ChristmasTree.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package christmastree;
import java.util.Scanner;
/**