Skip to content

f1shyfang/Betcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Betcha

Monolithic Next.js full-stack app

From the repository root:

npm install
npm run dev

This runs a single Next.js app that serves both UI pages and API routes.

Environment

Copy .env.example to .env.local and set:

  • DATABASE_URL for Postgres
  • SUPABASE_URL and SUPABASE_ANON_KEY for server-side Supabase access
  • NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY for browser auth
  • S3_BUCKET_NAME, S3_REGION, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY for evidence image uploads
  • S3_PUBLIC_BASE_URL (optional) if you use a custom/public CDN domain for uploaded files

NEXT_PUBLIC_API_URL is optional and usually left blank to use same-origin /api/*.

Scripts

  • npm run dev — start full-stack app locally
  • npm run build — production build
  • npm run start — run production server
  • npm run migrate — apply every SQL migration in supabase/migrations/ in order, with a fallback to server/migrations/ for local compatibility
  • npm test — resolve flow test

API endpoints

  • POST /api/waitlist
  • POST /api/markets/:id/resolve
  • GET /api/health

About

Betcha - Private Prediction Markets for Friends -3rd place at Usyd Startuplink hackerhouse

Resources

Stars

Watchers

Forks

Contributors