Skip to content

uriklar/potion-masters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Potion Masters 🧪

A magical React Native game that turns grocery shopping into an exciting potion-brewing adventure! Perfect for keeping children entertained while shopping.

Features

  • 📱 Scan real product barcodes to find potion ingredients
  • 🔍 Follow magical clues to find the right items
  • ✨ Beautiful magical UI design
  • 🎮 Fun and educational gameplay
  • 🔄 Dual API support for reliable product lookups

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Expo Go app on your mobile device

Installation

  1. Clone the repository:
git clone <repository-url>
cd potion-masters
  1. Install dependencies:
npm install
# or
yarn install

Running the App

  1. Start the development server:
npm start
# or
yarn start
  1. Scan the QR code with your mobile device:
    • iOS: Use the Camera app
    • Android: Use the Expo Go app

How to Play

  1. Start a new potion brewing session
  2. Follow the clues to find ingredients in the store
  3. Scan product barcodes to check if they match the ingredients you need
  4. Complete the potion by finding all ingredients

Technical Details

  • Built with React Native and Expo
  • Written in TypeScript
  • Uses multiple barcode APIs for reliable product information:
    • Primary: UPCitemdb API
    • Fallback: OpenFoodFacts API (open-source food products database)
  • Implements barcode scanning using Expo's BarCodeScanner

API Configuration

The app uses two APIs for product lookups:

  1. UPCitemdb API (Primary)

    • Free tier with no API key required
    • Used as the primary product lookup service
  2. OpenFoodFacts API (Fallback)

    • Completely free and open-source
    • No API key required
    • Rich food product database with detailed information
    • Used as a fallback when the primary API fails or doesn't find the product
    • Includes additional food-specific data like ingredients, nutritional info, and allergens

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors