Skip to content

Sserhatt/my-app

Repository files navigation

There is a test in Appwrite for API Backend-UP

To test includes ;

A full-stack to-do list application with unlimited nesting levels, built with React and Appwrite.

Features

  • User authentication (signup/login)
  • Permission
  • Unlimited recursive subtasks
  • Real-time data persistence
  • User-specific task lists

Tech Stack

  • Frontend: React + Vite
  • Backend: Appwrite Cloud
  • Styling: TailwindCSS
  • Testing: Vitest + Testing Library

Local Development

Prerequisites

  • Node.js 20+ -- Note: For Windows users: Perhaps last version would be better, if you face some errors please delete it node.js in your program app list and download it from official website again.
  • Appwrite account and creating a new project

Setup

  1. Follow the instructions of Appwrite Documentation. git clone cd recursive-todo-app

  2. Install dependencies npm install

  3. Configure environment Create .env file: VITE_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 VITE_APPWRITE_PROJECT_ID=your-project-id

  4. Run development server npm run dev

Running Tests

npm test

CI/CD Pipeline

Our pipeline includes:

  1. Lint - Code quality checks
  2. Test - Automated unit tests

Tools: GitHub

Database Structure

  • Collection: todos
  • Attributes:
    • title (string)
    • completed (boolean)
    • userId (string)
    • parentId (string, nullable) - enables recursion
    • order (integer)

Recursion Implementation

Tasks use a parentId field to reference their parent task. The UI recursively renders all child tasks, creating unlimited nesting levels.

License

@By Serhat Acar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published