Skip to content

futreall/roulette

Repository files navigation

Hourly Roulette Mini App

1. Install dependencies

npm install

2. Compile & deploy the contract

export PRIVATE_KEY=0xYOUR_PRIVATE_KEY
npm run compile
npm run deploy

After deployment, copy the printed contract address into index.html → CONTRACT_ADDRESS.

3. Serve the Mini App locally

npm run dev   # http://localhost:3000/index.html

Upload index.html (plus any assets) to an HTTPS static host < 2 MB.
Use that URL in your Farcaster cast as a Mini App.

4. Cast it

Check out today's Hourly Roulette!
<your-hosted-URL>

Farcaster will automatically render the button.


🚀 Деплой на Vercel (чтобы не было 404)

  1. index.html должен лежать в корне проекта!

    • Не в папке public, а именно в корне (как сейчас).
  2. В настройках Vercel:

    • Build Command: (оставьте пустым)
    • Output Directory: . (точка)
  3. Если уже деплоили — зайдите в Vercel Dashboard → Project → Settings → Build & Output Settings и исправьте Output Directory на . (точка).

  4. Перезапустите деплой.

  5. Проверьте, что сайт открывается по адресу https://roulettewinmon.vercel.app/


Если всё равно не работает — напишите в чат, приложите скриншот настроек Vercel (Build Command и Output Directory), и я помогу до победы!

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published