appwrite / playground-for-ruby

Simple examples that help you get started with Appwrite + Ruby (=❤️)

Home Page:https://appwrite.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appwrite's Ruby Playground 🎮

Appwrite playground is a simple way to explore the Appwrite API & Appwrite Ruby SDK. Use the source code of this repository to learn how to use the different Appwrite Ruby SDK features.

Ruby Style Guide

Work in progress

Get Started

This playground does not adhere to Ruby best practices but rather is intended to show some of the most simple examples and use cases of using the Appwrite API in your Ruby application. Rubocop is enforced and the configuration can be found at .rubocop.yml

System Requirements

  • A system with Ruby 2.7+ or Docker installed.
  • An Appwrite instance.
  • An Appwrite project created in the console.
  • An Appwrite API key created in the console.

Installation

  1. Clone this repository.
  2. cd into to the repository.
  3. Open the lib/playground.rb file found in the root of the cloned repository.
  4. Copy Project ID, endpoint and API key from Appwrite console into lib/playground.rb
  5. Run the playground: Ruby: - Install dependencies using pip bundle install - Execute the command bundle exec ruby lib/playground.rb Docker: - Execute the command docker compose up
  6. You will see the JSON response in the console.

API's Covered:

  • Databse

    • Create Collection
    • List Collections
    • Add Document
    • List Documents
    • Delete Document
    • Delete Collection
  • Storage

    • Create Bucket
    • List Buckets
    • Upload File
    • List Files
    • Delete File
    • Delete Bucket
  • Users

    • Create User
    • List Users
    • Delete User
  • Functions

    • Create Function
    • List Functions
    • Delete Function

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

We truly ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the contribution guide.

Security

For security issues, kindly email us security@appwrite.io instead of posting a public issue in GitHub.

Follow Us

Join our growing community around the world! Follow us on Twitter, Facebook Page, Facebook Group or join our Discord Server for more help, ideas and discussions.

About

Simple examples that help you get started with Appwrite + Ruby (=❤️)

https://appwrite.io

License:MIT License


Languages

Language:Ruby 97.9%Language:Dockerfile 2.1%