Code Monkey home page Code Monkey logo

buy-me-crypto's Introduction

Join the community on GitHub Discussions

Buy Me Crypto

Buy Me Crypto is a platform that makes it easier for creators to get funding from their fans using crypto. The app was built using React.js, Next.js and @solana/web3.js library.

Prerequisites

The following dependencies are required to build and run this app:

  • Install node (v14.18.1 recommended)
  • Install yarn (v1.22.5 recommended)

The following dependencies are required to test this app:

  • Phantom wallet (extension on your browser)

Local Setup

  1. Clone repo

  2. Change into app directory

cd app
  1. Setup Environment Variables (see .env.example)

  2. Install NPM dependencies

yarn
  1. Run App in development mode
yarn dev

How to talk to us?

Acknowledgements

This project was built during Solana Ignition Hackathon.

Maintainers:

buy-me-crypto's People

Contributors

baymac avatar ishaandesai45 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

buy-me-crypto's Issues

Add a pagePreview route

1.Remove Page Preview option from side bar when user is a fan
2.Redirect to Page Preview route when user visits his/her creator page
3.Make the sponsor form disabled in Page Preview

Design home page

  1. Form to store creators info - solana pub addr, creator tag, bio, 100 char bio, maybe let them answer a set of questions?
  2. For Fans - list of creators they sponsor, ideally a creator can also be a fan

Implement gettingStarted workflow

1.When user clicks "start my page" button :-
a). check if the pageName is filled if yes -> validate if pageName is unique ->then store the pageName in local storage -> redirect to the login page
b). If pageName is not filled then alert user via snackbar
2. On logging in , make the user a creator as only creator's have dedicated pages
3. Send api request to change the username/pageName of the user

Improve snackbar

  1. Add support for different variants
  2. Add a close icon action on the snackbar
  3. Enable stacking of multiple snackbars

Add transaction page

  1. Fan selects sponsor button, they are sent to checkout page, the checkout has a session id which is valid for a 15 mins.

Checkout session schema:

id:
	creator
	fan
	expires at
	created at
	type
	amt
	note
	completed
  1. Checkout page will be csr, fetch checkout session. If expired, show expired start a new session. If doesn't exist show 404.

Route format: /sponsor/:id

  1. Connect wallet -> show balance, sender address and receiver address, confirm txt button -> after txn, mark checkout completed, add to onetime/subscription collection redirect to /app route.

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.