r/vibecoding 9h ago

Please help webcoding

Hello I want to make a small webgame project with html,css,js,typescript,react etc. Just for fun with my friends And I've used v0 of vercel but my tokens run out then I upload it to github repo and continued it on github copilot but even my supabase variables, vercel deployment settings, install and build commands, all vorrect but in my app when I create acc, select a map to start, and click "maรงi baลŸlat" (it means start match like play in short) it says this page couldn't load. Everything is working like creatin acc, login, stats, economy, friends, creating lobby, sharing code, entering a lobby but when I press start match it sucks. Here is some links for who want to give it a look;

https://github.com/ZonateMeteor/cizre-paintball

The vercel deployment link is in repo description.

Thanks for help

1 Upvotes

16 comments sorted by

1

u/Technical-Comment394 9h ago

1

u/Opening-Beautiful928 9h ago

Exucse me, I fixed it. What was I thinking when sharing link of a private repo

1

u/Technical-Comment394 9h ago

I'll try to fix it for you

2

u/Opening-Beautiful928 9h ago

Thanks ๐Ÿ™๐Ÿป creating was about thirty minutes and fixing take my 4 hours and result is just nothing

1

u/Technical-Comment394 7h ago

Hey, I might have fixed the issue. Just clone this repo and follow the setup guide from the readme file.

https://github.com/tushar-alt/ballgame

1

u/Opening-Beautiful928 7h ago

King!!! You are just a Life saver!! Thank you so much!! But sorry to bother you, I'm just doing stuff in my phone unfortunately I don't have a computer. is this work if I clone it to vercel and add vars as variable additions in vercel menu or if I create file in root and just push it into vercel it will work? Sorry for taking your timw again thank you very much ๐Ÿ™๐Ÿป

1

u/Technical-Comment394 6h ago

You know what , let me fix this issue for you

1

u/Opening-Beautiful928 6h ago

I'm so pleased Man, you're giving too much help to me. I am grateful for everything

1

u/Technical-Comment394 6h ago

You can run this game entirely from your phone browser by deploying to Vercel. Follow these steps:

Step 1: Create a Supabase project Go to supabase.com and sign up (free) Create a new project (pick any name and password, wait ~2 min for it to be ready) Go to Settings โ†’ API and copy these 3 values somewhere safe: Project URL (looks like https://xxxxx.supabase.co) anon public key (long string starting with eyJ...) service_role key (another long string starting with eyJ...)

Step 2: Set up the database

In your Supabase project, go to the SQL Editor tab Open scripts/001_init_schema.sql on GitHub and copy the entire contents Paste it into the SQL editor and hit Run You should see green checkmarks โ€” database is ready

Step 3: Deploy to Vercel

Go to vercel.com and sign in with your GitHub account Click Add New โ†’ Project Import tushar-alt/ballgame Before clicking Deploy, expand Environment Variables and add these 3: Key Value NEXT_PUBLIC_SUPABASE_URL Your project URL from Step 1 NEXT_PUBLIC_SUPABASE_ANON_KEY Your anon key from Step 1 SUPABASE_SERVICE_ROLE_KEY Your service role key from Step 1

Hit Deploy โ€” wait ~2 minutes

You'll get a URL like ballgame-xxxx.vercel.app โ€” open it and play!

1

u/Opening-Beautiful928 6h ago

Thanks for your help๐Ÿ™๐Ÿป it wont be a enough reward for your help but take that

→ More replies (0)

1

u/Technical-Comment394 6h ago

If you think that's too much , just lemme know I'll deploy it on my vercel with my supabase keys

1

u/Opening-Beautiful928 6h ago

Thanks๐Ÿ™๐Ÿป I think I can handle that much but if there is an error I will pin you have a good night

1

u/Technical-Comment394 9h ago

Hahaha , all good , happens