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 / upload.js
Created September 1, 2019 16:22
Appwrite JS SDK - Upload Example
var appwrite = new window.Appwrite();
appwrite
.setEndpoint('https://localhost/v1')
.setProject('[PROJECT-ID]')
;
var file = document.getElementById('file-input').files[0];
let read = ['*']; // wildecard read access
let write = ['user:self']; // write access only to me
@eldadfux
eldadfux / collection.json
Last active September 17, 2019 07:32
Appwrite Collection
{
"name": "Articles",
"read": ["*"],
"write": ["*"],
"rules": [
{
"label": "Title",
"key": "title",
"type": "text",
@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 / 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
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 / 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 = "";
@eldadfux
eldadfux / install.sh
Last active January 30, 2021 16:05
Installation of Appwrite server
mkdir appwrite-ce && \
cd appwrite-ce && \
curl -o docker-compose.yml https://appwrite.io/docker-compose.yml?port=80 && \
docker-compose up -d --remove-orphans
@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 / 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
@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