Giter Site home page Giter Site logo

azle-todo-list's Introduction

Azle Todo List

A simple to-do list with task status. Built using the Azle package for ICP

Installation

  1. Clone the repository:

    git clone https://github.com/wiztensai/azle-todo-list.git
  2. Prerequisites:

    • Node.js version > 16

    • DFX command line tools (version 0.16.1):

      DFX_VERSION=0.16.1 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
    • Build dependencies:

      Ubuntu:

      sudo apt install clang
      sudo apt install build-essential
      sudo apt install libssl-dev
      sudo apt install pkg-config

      macOS:

      xcode-select --install
      brew install llvm
  3. Install dependencies and deploy:

    cd azle-todo-list
    npm install
    dfx deploy

API Usage Examples

Adding a new todo:

  1. add(title: text, body: text)
  2. get()
  3. update(taskId: text, title: text, body: text)

Setting task status:

  1. get()
  2. getTaskStatus()
  3. setTaskStatus(taskId: text, status: text)

Dependencies

  • "azle": "^0.20.1"
  • "uuid": "^9.0.1"

Additional Information

azle-todo-list's People

Contributors

wiztensai avatar

Watchers

 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.