Skip to content

Instantly share code, notes, and snippets.

Avatar
🎵
<b>CODE IS POETRY</b>

Eldad A. Fux eldadfux

🎵
<b>CODE IS POETRY</b>
View GitHub Profile
@eldadfux
eldadfux / README.md
Last active Mar 29, 2021
Appwrite's Email Verification
View README.md

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 Mar 28, 2021
Debugging Appwrite SSL certificates
View README.md

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 Jun 29, 2022
Appwrite 0.14 - Stack
View .env
_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 Sep 15, 2020 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
View VideoStream.php
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
View gist:f52593877f89a1729556936400240075
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 Apr 19, 2022
Appwrite with Sendgrid
View Sendgrid.md

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 Apr 21, 2020
Flutter Beta Testing
View README.md

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 Jan 14, 2022 — forked from PARC6502/OpenSourceBaas.md
List of open source, self hosted BaaS - Backend as a service
View OpenSourceBaas.md

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 Jan 14, 2020
Populate Appwrite DB with some data
View data.php
<?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 Sep 30, 2019
Appwrite Database
View setup.js
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