Skip to content

Simple examples that help you get started with Appwrite + Node.js (=❤️)

Notifications You must be signed in to change notification settings

appwrite/playground-for-node

Repository files navigation

Appwrite's Node.js Playground 🎮

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

JavaScript Style Guide

Work in progress

Get Started

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

Requirements

  • A system with NodeJS 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 the repository.
  3. Open the app.js file found in the root of the cloned repository.
  4. Copy Project ID, endpoint and API key from Appwrite console into app.js
  5. Run the playground: NodeJS: - Install dependencies npm install - Execute the command node app.js 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
    • Delete Collection
    • Create Document
    • List Documents
    • Delete Document
  • Storage

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

    • Create User
    • List Users
    • Delete User
  • Functions

    • Create Function
    • List Functions
    • Delete Function
    • Upload Deployment
    • Execute function (sync)
    • Execute function (async)

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.

About

Simple examples that help you get started with Appwrite + Node.js (=❤️)

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published