Skip to content

Instantly share code, notes, and snippets.

View eldadfux's full-sized avatar
🎵
<b>CODE IS POETRY</b>

Eldad A. Fux eldadfux

🎵
<b>CODE IS POETRY</b>
View GitHub Profile
@eldadfux
eldadfux / README.md
Last active September 10, 2023 12:39
Appwrite's Email Verification

Appwrite's Email Verification

The Appwrite email verification process helps you verify your project user really owns the email address he has signed up with. The email verification process allows your user to update his user object emailVerification attribute to true.

The email verification process consists of 2 parts:

  1. Sending the confirmation email
  2. Confirming the verification process

By default, unverified users are not restricted in any special way. It's up to you and your app logic to decide how these users are treated. You can prompt them with a verification message or limit their access to your application.

@eldadfux
eldadfux / README.md
Last active March 28, 2021 10:27
Debugging Appwrite SSL certificates

Appwrite SSL Certificates

This is a small snippet to help you debug and make sure Appwrite is able to generate SSL certificates for your domains.

Things to check:

  • You're using a public-facing domain pointing to your Appwrite instance.
  • Your _APP_ENV variable is set for production mode (learn more at: https://appwrite.io/docs/environment-variables).
  • You have a valid email address set on _APP_SYSTEM_SECURITY_EMAIL_ADDRESS (learn more at https://appwrite.io/docs/environment-variables).
  • Currently, Appwrite is using the acme HTTP-challenge to issue an SSL certificate. This forces us to generate certificates for port 443. At this point, other ports will not work.
@eldadfux
eldadfux / .env
Last active June 29, 2022 05:24
Appwrite 0.14 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=enabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
@eldadfux
eldadfux / VideoStream.php
Created September 15, 2020 15:07 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
docker run appwrite/cli:0.1.0 client.php set-endpoint --value=https://demo.com/v1
docker run appwrite/cli:0.1.0 client.php set-project --value=sdkajsdkjadks
docker run appwrite/cli:0.1.0 client.php set-key --value=sdasdashdjashdjashdjahsdjh
docker run appwrite/cli:0.1.0 account.php create
/bin/client.php
/bin/account.php
/bin/database.php
#!/bin/env php
@eldadfux
eldadfux / Sendgrid.md
Last active November 26, 2022 11:29
Appwrite with Sendgrid

Appwrite + Sendgrid SMTP Server

Simple steps to set Sendgrid as your Appwrite SMTP server

  1. Update your Appwrite Env vars with settings from your Sendgrid account
- _APP_SYSTEM_EMAIL_NAME=Project%20Team
- _APP_SYSTEM_EMAIL_ADDRESS=team@project.com
@eldadfux
eldadfux / README.md
Last active April 21, 2020 10:28
Flutter Beta Testing

Welcome

Thank you for stepping up to help us test and validate our new Appwrite server version that includes full support for integrating Appwrite with Flutter based apps.

The documents include some important links that will help you get started with Appwrite. We will also love to invite you to join both our local Israeli group and international community on Discord :)

Important Links

  1. Appwrite website: https://appwrite.io
  2. Appwrite docs: https://appwrite.io/docs
@eldadfux
eldadfux / OpenSourceBaas.md
Last active January 14, 2022 04:16 — forked from PARC6502/OpenSourceBaas.md
List of open source, self hosted BaaS - Backend as a service

Appwrite - ~15.7K stars

  • Docker based
  • Realtime support across all services
  • Advanced security features (virus-scanning, data encryption, auto SSL, rate-limiting)
  • Cross-platform: supports Web, Flutter, Desktop, Mobile and backend - over 10 SDKs: https://appwrite.io/docs/sdks
  • Cloud Functions with +15 runtimes in multiple languages

Parse Server - ~16K stars

  • javascript based
  • mongodb or postgres database
@eldadfux
eldadfux / data.php
Created January 14, 2020 11:43
Populate Appwrite DB with some data
<?php
class Client
{
const METHOD_GET = 'GET';
const METHOD_POST = 'POST';
const METHOD_PUT = 'PUT';
const METHOD_PATCH = 'PATCH';
const METHOD_DELETE = 'DELETE';
const METHOD_HEAD = 'HEAD';
@eldadfux
eldadfux / setup.js
Created September 30, 2019 06:38
Appwrite Database
let sdk = new Appwrite();
sdk
.setEndpoint('YOUR_SERVER_ENDPOINT') // http://localhost/v1
.setProject('YOUR_PROJECT_UID')
.setKey('YOUR_API_SECRET')
;
let promise = sdk.database.createCollection(
'Movies', // Collection Name