catmcgee / sequence-todo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

Sequence TODO App

A Web3 TODO app built with sequence wallet API

#buildWithSequence
Table of Contents
  1. About The Project
  2. Getting Started
  3. Contact

About The Project

This project aims to show a basic TODO web app connected to a smart contract to keep track of tasks for each user, using the sequence wallet to have a better user experience.

Users can connect their wallet using social or email login, but still being non-custodial and multi-chain.

(back to top)

Getting Started

There are 2 different folders in this project: client & server.

Inside client we have a basic node app with the frontend to communicate with the deployed smart contract.

Inside server we have a basic hardhat structure where you will find the smart contract to deploy.

You do not need to deploy the smart contract again if you don't want to. We have deployed one to Goerli testnet to which the frontend is already pointing at.

Prerequisites

For this project you will need to have npm installed and if you plan on deploying the smart contract on your own, you will need to install hardhat.

  • npm

    npm install npm@latest -g
  • hardhat

    npm install --save-dev hardhat

(To use hardhat after this installation you will need to use npx hardhat)

Installation

Follow this steps to run the app locally and use the already deployed contract

  1. Clone the repo
    git clone https://github.com/your_username_/Project-Name.git
  2. cd into client folder and install NPM packages
    cd client && npm install
  3. Start the app
    npm start
  4. Go to your browser and type
    http://localhost:3000/
    

Installation with deploy

In the server folder you will find the hardhat project with the smart contract and the deploy scripts.

  1. Clone the repo
    git clone https://github.com/your_username_/Project-Name.git
  2. cd into client folder and install NPM packages
    cd client && npm install
  3. Deploy the smart contract following the official tutorial:
  https://hardhat.org/tutorial/deploying-to-a-live-network
  1. Take the address of the newly deployed contract and change file ./client/src/config.js adding your newly deployed contract address in the 'TodoContractAddress' variable.

  2. (OPTIONAL) If you decided to change the smart contract, you may need to put the contract.json file created after the hardhat build in ./client/src/utils/Todo.json. If you changed a function signature you will need to do this so ethers.js knows how to communicate with your new smart contract.

  3. Cd into client folder and start the app

    cd client && npm start
  4. Go to your browser and type

    http://localhost:3000/
    

(back to top)

Contact

Twitter - @0xSequence

Discord - Sequence Discord

Youtube - Sequence Youtube

GitHub - Sequence Github

(back to top)

About


Languages

Language:JavaScript 77.2%Language:HTML 12.7%Language:Solidity 9.7%Language:CSS 0.4%