Skip to content

du1ana/todo-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Prerequisites

  1. Install the following:

  2. Install hp-devkit:

    • Run the command: npm i -g hpdevkit

Running the Smart Contract Locally (on Windows)

  1. Navigate to the ./todo-contract/ directory.
  2. Run npm i to install the required Node.js packages (this step is only needed once).
  3. Start the smart contract locally:
    • Run npm run start to build and execute the contract using hp-devkit.
  4. Stop the hp-devkit service when done:
    • Run hpdevkit stop.

Note: Docker must be running when you try to run the smart contract. If you encounter any issues with hp-devkit, run the command hpdevkit clean to reset its state.


Running the Client app (on Windows)

  1. Navigate to the ./todo-client/ directory.
  2. Run npm i to install the required Node.js packages (this step is only needed once).
  3. Execute the client application:
    • Run node todo-client.js.

Important: Ensure the smart contract is running before executing the client application to perform CRUD operations on the database.

About

A simple To-Do List application implemented as a Node.js smart contract, designed to be hosted on Evernode. It includes SQLite database integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors