Coder Social home page Coder Social logo

data-miner00 / positron Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 3.21 MB

A simple project that allows user to send Ethereum with gifs and message

Shell 0.09% JavaScript 12.05% HTML 2.38% CSS 14.13% TypeScript 67.88% PowerShell 0.14% Solidity 3.34%
ethereum react truffle

positron's Introduction

Positron+

Positron+ is a simple dapps that allows user to send ethers and attach a message and keyword along with the transaction.

Tech Stacks

The list of technologies used for this project.

Front-end

Smart Contracts

Demo

Landing page of the Dapp.

Positron landing page

After connecting the Metamask wallet and filling up the forms for transfer, two Metamask prompt will popup consequently. The first one is to confirm the transaction to send the ethers to the destination address.

Sending Eth prompt

The second prompt will ask for confirmation to interact with the smart contract so that the data will be written to the blockchain.

Interacting with Smart Contract

After executing all the transactions, Metamask will notify us upon confirmed transactions.

Metamask notification for confirmed transactions

The transaction added will be displayed in a card.

Transaction card

All the transactions can be viewed in the /transactions page.

Transactions page

Development

Smart Contracts

The framework for managing smart contract used is Truffle. To install Truffle

npm i -g truffle

Install Node dependencies

pnpm i

Build and compile the smart contracts within the contracts folder

pnpm build

Building contracts will product an artifact called Transaction.json that is required by the client project. The file can be cloned by running ../scripts/copy_abi.ps1

Deploy the compiled contracts to local Ethereum network

pnpm migrate

Before migration, create a file called private-key.crt and paste one of the account's private key and all the deployments will be performed under that account.

Spinup a local interactive Ethereum blockchain

pnpm dev

Alternatively, use Truffle Ganache to spinup a local Ethereum network with UI.

Ganache

Run contract tests

pnpm test

Lint contracts

pnpm lint

Client

To run the client locally, make sure to locate in the client first.

cd client

Installing Node dependencies by

yarn

Serve on localhost

yarn start

Running tests

yarn test

Build for deployment

yarn build

Storybook

The development of the user interfaces are facilitated by the use of Storybook to document and produce prototypes quickly.

Storybook

Start Storybook locally

yarn storybook

// or short form
yarn sb

Build Storybook for hosting

yarn build-storybook

Roadmaps

The list of milestones that is planned to fulfill following the initial release.

  • Personalized profile avatar
  • Redesign landing page
  • Make Nx monorepo
  • Add more chain such as Algorand.
  • Customize Storybook
  • Use Framer motion to animate elements

Credits

Resources

positron's People

Contributors

data-miner00 avatar

Stargazers

 avatar

Watchers

 avatar  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.