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.
- ⚡️ 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
- 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
- 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)
-
Clone the repository:
git clone https://github.com/vineetmishra237/BrewRoute.git cd BrewRoute -
Install dependencies:
npm install
-
Start the development server:
npm run dev
The app will be available at http://localhost:5173 (or as indicated in your terminal).
- Navigate to the smart contract directory:
cd starkbc11 - Install dependencies and build:
scarb build
- Run tests:
scarb test
npm run dev– Start the development server with hot reloadingnpm run build– Build the app for productionnpm run preview– Preview the production build locallynpm run lint– Lint the codebase
scarb build– Build Cairo contractsscarb test– Run Cairo contract tests
.
├── 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
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.
lib.cairo– Main contract source fileScarb.toml– Scarb project configurationScarb.lock– Scarb lock filesnfoundry.toml– Foundry configuration for Starknettests/– Cairo test files for the contracttarget/– Build artifacts
cd starkbc11
scarb buildscarb test- All contract code is in Cairo and targets the Starknet blockchain.
- Use
scarbfor 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.
This project is licensed under the MIT License.
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}.