Skip to content

adityaoberai/.NET-Appwrite-Todo-API

Repository files navigation

.NET + Appwrite Todo API

Description

Todo CRUD API built with Appwrite Cloud and .NET 7

Installation

Appwrite Setup

  • Sign up for Appwrite Cloud

    Register for Appwrite Cloud

  • Create your first project

    Create a project

  • Create an API Key with the scopes documents.read and documents.write

    API Key scopes

  • Create a database, followed by a collection, and create the following attributes

    Attribute ID Type Size Default Value Required Array
    description string 255 Yes No
    isCompleted boolean Yes No

    Collection attributes

  • Keep your Project Id, Database Id, Collection Id, and API Key saved for the project setup

Project Setup

  • Install the .NET 7 SDK if you haven't already

  • Clone the repository

    https://github.com/adityaoberai/.NET-Appwrite-Todo-API.git
  • Restore all NuGet packages

    dotnet restore
  • Enter the project directory

    cd AppwriteCrudApi/
  • Add the Project Id, Database Id, Collection Id, and API Key you saved from your Appwrite project in the appsettings.json file

  • Run the project

    dotnet run
  • Open the following URL in your browser

    https://localhost:7248/swagger
    

    OR

    http://localhost:5023/swagger