This is my app, woohoo!

This is a link

🎮 Vercel API + Redis Template

A reference project for API routes and database patterns

1. Basic API Call

Simple GET request with query parameters → /api/hello

Click to test...

2. Redis Key-Value (SET/GET/KEYS/MGET)

Store and retrieve simple values → /api/player/score

Click to test...
Click "Get ALL" to see all scores...

3. Redis Hash (HSET/HGET/HGETALL/KEYS)

Store objects with multiple fields → /api/player/profile

Click to test...
Click "Get ALL" to see all profiles...

4. Redis Sorted Set (ZADD/ZRANGE)

Perfect for leaderboards! → /api/leaderboard

Click to test...

5. Redis List (LPUSH/LRANGE)

Activity feeds and recent events → /api/activity-log

Click to test...

📚 Quick Reference

API Endpoints

  • GET /api/hello?name=X
  • GET/POST /api/player/score
  • GET/POST/PUT /api/player/profile
  • GET/POST /api/leaderboard
  • GET/POST /api/activity-log

Redis Data Types

  • String: SET, GET, KEYS, MGET
  • Hash: HSET, HGET, HGETALL, KEYS
  • Sorted Set: ZADD, ZRANGE, ZRANK
  • List: LPUSH, LRANGE, LTRIM