Skip to content

vineetmishra237/BrewRoute

Repository files navigation

Brew Route

Welcome to Brew Route! This project is a modern web application built to help users discover, explore, and interact with the anti-counterfeit measurements in the world of brewing. It leverages a robust tech stack for speed, scalability, and a delightful user experience.

Features

  • ⚡️ Fast, modern UI with Vite, React, and TypeScript
  • 🎨 Beautiful components with shadcn-ui and Tailwind CSS
  • 📱 Responsive design for mobile and desktop
  • 🔍 QR code scanning and interactive features
  • 🧩 Modular, maintainable codebase
  • 🔗 Blockchain integration with Cairo smart contracts on Starknet for anti-counterfeit verification

Tech Stack

  • Vite – Lightning-fast build tool
  • React – UI library
  • TypeScript – Type safety
  • shadcn-ui – UI components
  • Tailwind CSS – Utility-first CSS framework
  • Cairo – Smart contract language for Starknet
  • Starknet – Layer 2 blockchain for scalable, secure smart contracts

Getting Started

Prerequisites

  • Node.js (v16+ recommended)
  • npm (comes with Node.js)
  • (Optional) nvm for managing Node versions
  • Cairo (v2.x recommended, for smart contract development)
  • Scarb (Cairo package manager)
  • snfoundry (for smart contract testing)

Installation

Frontend

  1. Clone the repository:

    git clone https://github.com/vineetmishra237/BrewRoute.git
    cd BrewRoute
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

    The app will be available at http://localhost:5173 (or as indicated in your terminal).

Smart Contracts

  1. Navigate to the smart contract directory:
    cd starkbc11
  2. Install dependencies and build:
    scarb build
  3. Run tests:
    scarb test

Available Scripts

Frontend

  • npm run dev – Start the development server with hot reloading
  • npm run build – Build the app for production
  • npm run preview – Preview the production build locally
  • npm run lint – Lint the codebase

Smart Contracts (from starkbc11 directory)

  • scarb build – Build Cairo contracts
  • scarb test – Run Cairo contract tests

Project Structure

.
├── src/
│   ├── components/         # Reusable UI components
│   ├── hooks/              # Custom React hooks
│   ├── lib/                # Utility functions
│   ├── pages/              # Page components (routing)
│   └── main.tsx            # App entry point
├── public/                 # Static assets
├── tailwind.config.ts      # Tailwind CSS configuration
├── vite.config.ts          # Vite configuration
├── package.json            # Project metadata and scripts
├── starkbc11/              # Cairo smart contracts for Starknet
│   ├── lib.cairo           # Main contract source file
│   ├── src/                # Additional contract modules
│   ├── Scarb.toml          # Scarb project configuration
│   ├── snfoundry.toml      # Foundry config for Starknet
│   ├── tests/              # Cairo contract tests
│   └── target/             # Build artifacts
└── README.md               # Project documentation

Smart Contracts

This project includes Cairo smart contracts located in the starkbc11 directory. These contracts are designed for the Starknet blockchain and are managed using Scarb, the Cairo package manager.

Structure

  • lib.cairo – Main contract source file
  • Scarb.toml – Scarb project configuration
  • Scarb.lock – Scarb lock file
  • snfoundry.toml – Foundry configuration for Starknet
  • tests/ – Cairo test files for the contract
  • target/ – Build artifacts

Getting Started with Cairo Contracts

Prerequisites

Build the Contract

cd starkbc11
scarb build

Run Tests

scarb test

Notes

  • All contract code is in Cairo and targets the Starknet blockchain.
  • Use scarb for dependency management and building.
  • Tests are located in starkbc11/tests/.

For more details, see the files in the starkbc11 directory or refer to the official Cairo and Starknet documentation.

License

This project is licensed under the MIT License.

Hack4Bengal & Starknet Re{Ignite}

This project was started as part of the Hack4Bengal hackathon, with the idea and mvp built during it's timeline. As a part of dual submission to the Starknet Re{Ignite} hackathon, in view of qualifying for the Starknet track, we aimed to give our UI an enhanced web3 look and futher explore the capabilities of Starknet fit to our solution at Starknet Re{Ignite}.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors