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 / collection.json
Last active September 17, 2019 07:32
Appwrite Collection
{
"name": "Articles",
"read": ["*"],
"write": ["*"],
"rules": [
{
"label": "Title",
"key": "title",
"type": "text",
@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 / 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