Skip to content
/ Stubr Public

HOLON INNOVATE 2021 - 2nd Category (A) BUILD

Notifications You must be signed in to change notification settings

5208980/Stubr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

React frontend, that is connected to Express Node server. This allows for connection of Web3.storage. To use the implementation of smart contracts, you will need,

Technologies Used

  • React Framework for frontend
  • Web3.storage as IPFS/Filecoin storage of tickets

Endpoints

http://localhost:3000/ (connect to metamask)

http://localhost:3000/upload (upload ticket image + metadata to web3.storage and mint on smart contract) For the Ticket Image input in /upload, you can statily select one of the filepaths

  • assets/1/ticket.png
  • assets/a/ticket.png
  • assets/b/ticket.png
  • assets/c/ticket.png

Image 1.1 Form filled to store using Web3.storage Ticket + Metadata

Image 1.2 Successful form submission, where you can view NFT on application (Image 1.3), Ticket on IPFS, Metadata on IPFS

http://localhost:3000/list/contract/ticketID (shows ticket information of the ticketId, listing and buy request)

Image 1.3 View Nft on Application, where owner can list ticket for sale

Run locally (localhost)

  1. Clone repo
git clone [email protected]:z5208980/stubr.git
cd stubr
  1. On one terminal, setup express node (this is to connect to Web3.storage)
cd backend
npm install     # If first time use
node run dev    # runs express server
  1. In another terminal, To run frontend react app, (this is to connet to Web3)
cd frontend
npm install     # If first time use
npm start       # should start on port 3000

About

HOLON INNOVATE 2021 - 2nd Category (A) BUILD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published