Ujayata / Celo-Frontend-Challenge

Home Page:https://celo-frontend-challenge-react-app.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CELO-FRONTEND-CHALLENGE

Description

This web application submission enables user to view, buy, add, delete their products in the marketplace. This marketplace keeps tracks of user transactions done on the marketplace.

Features

  1. View list of products in the marketplace
  2. Add new products
  3. Delete products
  4. View transaction history, i.e. a record for every transaction made on the marketplace (buy, sell, and remove transactions).

Tech Stack

This web aplication uses the following tech stack:

  • Solidity - A programming language for Ethereum smart contracts.
  • React - A JavaScript library for building user interfaces.
  • Typescript - a strongly typed programming language that builds on JavaScript.
  • Rainbowkit-celo - RainbowKit is a React library that makes it easy to add wallet connection to dapp.
  • Wagmi - wagmi is a collection of React Hooks containing everything you need to start working with Ethereum
  • Hardhat - A tool for writing and deploying smart contracts.
  • TailwindCss - A CSS framework that dress up webpage.

Installation

To run the application locally, follow these steps:

  1. Clone the repository to your local machine using: git clone https://github.com/Blisado1/Celo-Frontend-Challenge
  2. Move into react-app folder: cd celo-fe-101/packages/react-app
  3. Install: npm install or yarn install
  4. Start: npm run dev
  5. Open the application in your web browser at http://localhost:3000

Usage

  1. Install a wallet: MetamaskExtensionWallet.
  2. Create a wallet.
  3. Go to https://faucet.celo.org/alfajores and get tokens for the alfajores testnet.
  4. Switch to the alfajores testnet.
  5. Connect your wallet to the app.
  6. Create multiple products.
  7. Create a second account in your extension wallet.
  8. Add products to your cart
  9. Checkout from cart and pay
  10. Check balance
  11. Switch to first account and check sales
  12. Then withdraw money in sales to first account

Contributing

  1. Fork this repository
  2. Create a new branch for your changes: git checkout -b my-feature-branch
  3. Make your changes and commit them: git commit -m "feat: create new feature"
  4. Push your changes to your fork: git push origin my-feature-branch
  5. Open a pull request to this repository with a description of your changes

Please make sure that your code follows the Solidity Style Guide and the React Style Guide. You can add tests for any new features or changes, also please make the front-end more friendly. I welcome any contributions or feedback on this project!

About

https://celo-frontend-challenge-react-app.vercel.app

License:MIT License


Languages

Language:TypeScript 77.5%Language:JavaScript 12.0%Language:Solidity 10.3%Language:CSS 0.2%