Git Product home page Git Product logo

playground-for-swift's Introduction

Playground for Swift

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

This is Appwrite server side integration with Swift. For Apple integration please look at our Apple playground and Apple SDK

Work in progress

Appwrite playground is a simple way to explore the Appwrite API and Appwrite Swift SDK. Use the source code of this page to learn how to use different Appwrite Swift SDK features.

Get Started

This playground doesn't include any Appwrite best practices, but rather intended to show some of the most simple examples and use cases of using the Appwrite API in your Swift application.

System Requirements

  • An Appwrite instance.
  • Create a project in Appwrite instance using console
  • Generate a secret key in the Appwrite instance using console

Installation

  1. Clone this repository
  2. Open Sources/PlaygroundForSwiftServer/main.swift file
  3. Copy the project id, endpoint, secret key from the Appwrite Console
  4. Update project id, endpoint, secret key by copying from the console in the Sources/PlaygroundForSwiftServer/main.swift file
  5. Run the playground:
    • Xcode:
      • Click Run with the PlaygroundForSwiftServer scheme selected
    • Command Line:
      • Execute swift run in the root of the repository
    • Docker:
      • Execute docker compose up
  6. You will see the JSON response in the console

API Covered in Playground.

  • Create Collection
  • List Collection
  • Delete Collection
  • Add Document
  • List Documents
  • Upload File
  • Delete File
  • Create Function
  • List Function
  • Delete Function
  • Create User
  • List User
  • Delete User

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 [email protected] 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.

playground-for-swift's People

Contributors

abnegate avatar lohanidamodar avatar eldadfux avatar wess avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.